equal
deleted
inserted
replaced
309 * Cleans the user cache for a specific user. |
309 * Cleans the user cache for a specific user. |
310 * |
310 * |
311 * @since 3.0.0 |
311 * @since 3.0.0 |
312 * |
312 * |
313 * @param int $id The user ID. |
313 * @param int $id The user ID. |
314 * @return bool|int The ID of the refreshed user or false if the user does not exist. |
314 * @return int|false The ID of the refreshed user or false if the user does not exist. |
315 */ |
315 */ |
316 function refresh_user_details( $id ) { |
316 function refresh_user_details( $id ) { |
317 $id = (int) $id; |
317 $id = (int) $id; |
318 |
318 |
319 $user = get_userdata( $id ); |
319 $user = get_userdata( $id ); |
687 * @since 3.0.0 |
687 * @since 3.0.0 |
688 * |
688 * |
689 * @global int $wp_db_version WordPress database version. |
689 * @global int $wp_db_version WordPress database version. |
690 * @global string $pagenow |
690 * @global string $pagenow |
691 * |
691 * |
692 * @return false False if the current user is not a super admin. |
692 * @return void|false Void on success. False if the current user is not a super admin. |
693 */ |
693 */ |
694 function site_admin_notice() { |
694 function site_admin_notice() { |
695 global $wp_db_version, $pagenow; |
695 global $wp_db_version, $pagenow; |
696 |
696 |
697 if ( ! current_user_can( 'upgrade_network' ) ) { |
697 if ( ! current_user_can( 'upgrade_network' ) ) { |
840 * @access private |
840 * @access private |
841 */ |
841 */ |
842 function _thickbox_path_admin_subfolder() { |
842 function _thickbox_path_admin_subfolder() { |
843 ?> |
843 ?> |
844 <script type="text/javascript"> |
844 <script type="text/javascript"> |
845 var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ); ?>"; |
845 var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>"; |
846 </script> |
846 </script> |
847 <?php |
847 <?php |
848 } |
848 } |
849 |
849 |
850 /** |
850 /** |
999 function network_settings_add_js() { |
999 function network_settings_add_js() { |
1000 ?> |
1000 ?> |
1001 <script type="text/javascript"> |
1001 <script type="text/javascript"> |
1002 jQuery(document).ready( function($) { |
1002 jQuery(document).ready( function($) { |
1003 var languageSelect = $( '#WPLANG' ); |
1003 var languageSelect = $( '#WPLANG' ); |
1004 $( 'form' ).submit( function() { |
1004 $( 'form' ).on( 'submit', function() { |
1005 // Don't show a spinner for English and installed languages, |
1005 // Don't show a spinner for English and installed languages, |
1006 // as there is nothing to download. |
1006 // as there is nothing to download. |
1007 if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) { |
1007 if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) { |
1008 $( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' ); |
1008 $( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' ); |
1009 } |
1009 } |
1015 |
1015 |
1016 /** |
1016 /** |
1017 * Outputs the HTML for a network's "Edit Site" tabular interface. |
1017 * Outputs the HTML for a network's "Edit Site" tabular interface. |
1018 * |
1018 * |
1019 * @since 4.6.0 |
1019 * @since 4.6.0 |
|
1020 * |
|
1021 * @global string $pagenow |
1020 * |
1022 * |
1021 * @param array $args { |
1023 * @param array $args { |
1022 * Optional. Array or string of Query parameters. Default empty array. |
1024 * Optional. Array or string of Query parameters. Default empty array. |
1023 * |
1025 * |
1024 * @type int $blog_id The site ID. Default is the current site. |
1026 * @type int $blog_id The site ID. Default is the current site. |