Changeset 32653
- Timestamp:
- 05/29/2015 05:03:13 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/admin.php
r29206 r32653 15 15 load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' ); 16 16 } 17 18 /** WordPress Administration Hooks */ 19 require_once(ABSPATH . 'wp-admin/includes/admin-filters.php'); 17 20 18 21 /** WordPress Bookmark Administration API */ … … 70 73 /** WordPress Multisite support API */ 71 74 if ( is_multisite() ) { 75 require_once(ABSPATH . 'wp-admin/includes/ms-admin-filters.php'); 72 76 require_once(ABSPATH . 'wp-admin/includes/ms.php'); 73 77 require_once(ABSPATH . 'wp-admin/includes/ms-deprecated.php'); -
trunk/src/wp-admin/includes/bookmark.php
r32642 r32653 117 117 */ 118 118 function wp_get_link_cats( $link_id = 0 ) { 119 120 119 $cats = wp_get_object_terms( $link_id, 'link_category', array('fields' => 'ids') ); 121 122 120 return array_unique( $cats ); 123 121 } … … 309 307 wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) ); 310 308 } 311 add_action( 'admin_page_access_denied', 'wp_link_manager_disabled_message' ); -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r32650 r32653 1625 1625 } 1626 1626 1627 add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );1628 1629 1627 /** 1630 1628 * Language pack upgrader, for updating translations of plugins, themes, and core. -
trunk/src/wp-admin/includes/dashboard.php
r32642 r32653 1198 1198 <?php 1199 1199 } 1200 add_action( 'activity_box_end', 'wp_dashboard_quota' );1201 1200 1202 1201 // Display Browser Nag Meta Box -
trunk/src/wp-admin/includes/media.php
r32650 r32653 64 64 return $tabs; 65 65 } 66 add_filter('media_upload_tabs', 'update_gallery_tab');67 66 68 67 /** … … 221 220 return apply_filters( 'image_add_caption_shortcode', $shcode, $html ); 222 221 } 223 add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 );224 222 225 223 /** … … 578 576 } 579 577 } 580 add_action( 'media_buttons', 'media_buttons' );581 578 582 579 /** … … 1142 1139 } 1143 1140 1144 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 );1145 1146 1141 /** 1147 1142 * {@internal Missing Short Description}} … … 1168 1163 return $html; 1169 1164 } 1170 1171 add_filter('media_send_to_editor', 'image_media_send_to_editor', 10, 3);1172 1165 1173 1166 /** … … 2612 2605 <?php 2613 2606 } 2614 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');2615 2607 2616 2608 /** … … 2626 2618 <?php 2627 2619 } 2628 add_action('post-html-upload-ui', 'media_upload_html_bypass');2629 2620 2630 2621 /** … … 2908 2899 endif; 2909 2900 } 2910 2911 add_filter( 'async_upload_image', 'get_media_item', 10, 2 );2912 add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );2913 add_filter( 'async_upload_video', 'get_media_item', 10, 2 );2914 add_filter( 'async_upload_file', 'get_media_item', 10, 2 );2915 2916 add_action( 'media_upload_image', 'wp_media_upload_handler' );2917 add_action( 'media_upload_audio', 'wp_media_upload_handler' );2918 add_action( 'media_upload_video', 'wp_media_upload_handler' );2919 add_action( 'media_upload_file', 'wp_media_upload_handler' );2920 2921 add_filter( 'media_upload_gallery', 'media_upload_gallery' );2922 add_filter( 'media_upload_library', 'media_upload_library' );2923 2924 add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );2925 2901 2926 2902 /** -
trunk/src/wp-admin/includes/misc.php
r32642 r32653 251 251 } 252 252 253 add_action( 'update_option_home', 'update_home_siteurl', 10, 2 );254 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 );255 add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 );256 257 253 /** 258 254 * Shorten an URL, to be used as link text … … 680 676 echo '<script type="text/javascript">var _wpColorScheme = ' . wp_json_encode( array( 'icons' => $icon_colors ) ) . ";</script>\n"; 681 677 } 682 add_action( 'admin_head', 'wp_color_scheme_settings' );683 678 684 679 function _ipad_meta() { … … 689 684 } 690 685 } 691 add_action('admin_head', '_ipad_meta');692 686 693 687 /** … … 720 714 return $response; 721 715 } 722 add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 );723 716 724 717 /** … … 759 752 return $response; 760 753 } 761 add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 );762 754 763 755 /** … … 793 785 return $response; 794 786 } 795 add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 );796 787 797 788 /** … … 814 805 return $settings; 815 806 } 816 add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );817 807 818 808 /** … … 839 829 return $response; 840 830 } 841 // Run later as we have to set DOING_AUTOSAVE for back-compat842 add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );843 831 844 832 /** … … 859 847 } 860 848 } 861 add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' );862 849 863 850 /** … … 904 891 <?php 905 892 } 906 add_action( 'admin_head', 'wp_admin_canonical_url' ); -
trunk/src/wp-admin/includes/ms.php
r32642 r32653 42 42 return $file; 43 43 } 44 add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );45 44 46 45 /** … … 301 300 wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); 302 301 } 303 add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );304 add_action( 'add_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );305 302 306 303 /** … … 384 381 } 385 382 } 386 add_action( 'personal_options_update', 'send_confirmation_on_profile_email' );387 383 388 384 /** … … 396 392 echo "<div class='update-nag'>" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "</div>"; 397 393 } 398 add_action( 'admin_notices', 'new_user_email_admin_notice' );399 394 400 395 /** … … 491 486 <?php 492 487 } 493 add_action( 'wpmueditblogaction', 'upload_space_setting' );494 488 495 489 /** … … 622 616 return $term; 623 617 } 624 add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );625 618 626 619 /** … … 663 656 wp_die( $output, 403 ); 664 657 } 665 add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );666 658 667 659 /** … … 678 670 return true; 679 671 } 680 add_filter( 'import_allow_create_users', 'check_import_new_users' );681 672 // See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too. 682 673 … … 747 738 echo "<div class='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . "</div>"; 748 739 } 749 add_action( 'admin_notices', 'site_admin_notice' );750 add_action( 'network_admin_notices', 'site_admin_notice' );751 740 752 741 /** … … 783 772 return $data; 784 773 } 785 add_filter( 'wp_insert_post_data', 'avoid_blog_page_permalink_collision', 10, 2 );786 774 787 775 /** -
trunk/src/wp-admin/includes/nav-menu.php
r32642 r32653 1255 1255 wp_delete_post( $menu_item_id, true ); 1256 1256 } 1257 add_action('admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items');1258 1257 1259 1258 /** -
trunk/src/wp-admin/includes/plugin-install.php
r32642 r32653 159 159 echo '</p><br class="clear" />'; 160 160 } 161 add_action( 'install_plugins_featured', 'install_dashboard' );162 161 163 162 /** … … 210 209 <?php 211 210 } 212 add_action('install_plugins_upload', 'install_plugins_upload' );213 211 214 212 /** … … 259 257 <?php 260 258 } 261 add_action( 'install_plugins_search', 'display_plugins_table' );262 add_action( 'install_plugins_popular', 'display_plugins_table' );263 add_action( 'install_plugins_recommended', 'display_plugins_table' );264 add_action( 'install_plugins_new', 'display_plugins_table' );265 add_action( 'install_plugins_beta', 'display_plugins_table' );266 add_action( 'install_plugins_favorites', 'display_plugins_table' );267 259 268 260 /** … … 583 575 exit; 584 576 } 585 add_action('install_plugins_pre_plugin-information', 'install_plugin_information'); -
trunk/src/wp-admin/includes/plugin.php
r32643 r32653 1853 1853 return $options; 1854 1854 } 1855 add_filter( 'whitelist_options', 'option_update_filter' );1856 1855 1857 1856 /** -
trunk/src/wp-admin/includes/template.php
r32650 r32653 2187 2187 } 2188 2188 2189 add_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );2190 add_action( 'user_register', array( 'WP_Internal_Pointers', 'dismiss_pointers_for_new_users' ) );2191 2192 2189 /** 2193 2190 * Convert a screen string to a screen object -
trunk/src/wp-admin/includes/theme-install.php
r32643 r32653 133 133 <?php 134 134 } 135 // add_action('install_themes_dashboard', 'install_themes_dashboard');136 135 137 136 function install_themes_upload() { … … 145 144 <?php 146 145 } 147 // add_action('install_themes_upload', 'install_themes_upload', 10, 0);148 146 149 147 /** … … 181 179 182 180 } 183 // add_action('install_themes_search', 'display_themes');184 // add_action('install_themes_featured', 'display_themes');185 // add_action('install_themes_new', 'display_themes');186 // add_action('install_themes_updated', 'display_themes');187 181 188 182 /** … … 209 203 exit; 210 204 } 211 add_action('install_themes_pre_theme-information', 'install_theme_information'); -
trunk/src/wp-admin/includes/theme.php
r32650 r32653 566 566 <?php 567 567 } 568 add_action( 'customize_controls_print_footer_scripts', 'customize_themes_print_templates' ); -
trunk/src/wp-admin/includes/update-core.php
r32643 r32653 1211 1211 exit(); 1212 1212 } 1213 add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' );1214 1213 1215 1214 /** -
trunk/src/wp-admin/includes/update.php
r32643 r32653 189 189 } 190 190 } 191 add_filter( 'update_footer', 'core_update_footer' );192 191 193 192 /** … … 217 216 echo "<div class='update-nag'>$msg</div>"; 218 217 } 219 add_action( 'admin_notices', 'update_nag', 3 );220 add_action( 'network_admin_notices', 'update_nag', 3 );221 218 222 219 // Called directly from dashboard … … 267 264 } 268 265 } 269 add_action( 'admin_init', 'wp_plugin_update_rows' );270 266 271 267 function wp_plugin_update_row( $file, $plugin_data ) { … … 363 359 } 364 360 } 365 add_action( 'admin_init', 'wp_theme_update_rows' );366 361 367 362 function wp_theme_update_row( $theme_key, $theme ) { … … 442 437 echo "<div class='update-nag'>$msg</div>"; 443 438 } 444 add_action( 'admin_notices', 'maintenance_nag' );445 add_action( 'network_admin_notices', 'maintenance_nag' ); -
trunk/src/wp-admin/includes/user.php
r32642 r32653 387 387 } 388 388 389 add_action('admin_init', 'default_password_nag_handler');390 389 /** 391 390 * @since 2.8.0 … … 410 409 } 411 410 412 add_action('profile_update', 'default_password_nag_edit_user', 10, 2);413 414 411 /** 415 412 * @since 2.8.0 … … 428 425 } 429 426 } 430 431 add_action('admin_notices', 'default_password_nag');432 427 433 428 /**
Note: See TracChangeset
for help on using the changeset viewer.