~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/options.php

  • Committer: Barry Price
  • Date: 2019-02-22 03:51:26 UTC
  • mfrom: (1.2.12 upstream)
  • Revision ID: barry.price@canonical.com-20190222035126-o28k38qs8jfyjsxt
Merge WP5.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * @since 4.2.0
14
14
 */
15
15
function options_discussion_add_js() {
16
 
?>
 
16
        ?>
17
17
        <script>
18
18
        (function($){
19
19
                var parent = $( '#show_avatars' ),
23
23
                });
24
24
        })(jQuery);
25
25
        </script>
26
 
<?php
 
26
        <?php
27
27
}
28
28
 
29
29
/**
32
32
 * @since 3.5.0
33
33
 */
34
34
function options_general_add_js() {
35
 
?>
 
35
        ?>
36
36
<script type="text/javascript">
37
37
        jQuery(document).ready(function($){
38
38
                var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(),
88
88
                });
89
89
        });
90
90
</script>
91
 
<?php
 
91
        <?php
92
92
}
93
93
 
94
94
/**
97
97
 * @since 3.5.0
98
98
 */
99
99
function options_reading_add_js() {
100
 
?>
 
100
        ?>
101
101
<script type="text/javascript">
102
102
        jQuery(document).ready(function($){
103
103
                var section = $('#front-static-pages'),
107
107
                                selects.prop( 'disabled', ! staticPage.prop('checked') );
108
108
                        };
109
109
                check_disabled();
110
 
                section.find('input:radio').change(check_disabled);
 
110
                 section.find('input:radio').change(check_disabled);
111
111
        });
112
112
</script>
113
 
<?php
 
113
        <?php
114
114
}
115
115
 
116
116
/**