Ticket #37748: 37748.2.patch
File 37748.2.patch, 12.9 KB (added by , 9 years ago) |
---|
-
wp-admin/admin-footer.php
83 83 * 84 84 * @param string $hook_suffix The current admin page. 85 85 */ 86 do_action( "admin_print_footer_scripts- $hook_suffix" );86 do_action( "admin_print_footer_scripts-{$hook_suffix}" ); 87 87 88 88 /** 89 89 * Prints any scripts and data queued for the footer. … … 103 103 * @global string $hook_suffix 104 104 * @param string $hook_suffix The current admin page. 105 105 */ 106 do_action( "admin_footer- $hook_suffix" );106 do_action( "admin_footer-{$hook_suffix}" ); 107 107 108 108 // get_site_option() won't exist when auto upgrading from <= 2.7 109 109 if ( function_exists('get_site_option') ) { -
wp-admin/admin-header.php
96 96 * 97 97 * @since 2.6.0 98 98 */ 99 do_action( "admin_print_styles- $hook_suffix" );99 do_action( "admin_print_styles-{$hook_suffix}" ); 100 100 101 101 /** 102 102 * Fires when styles are printed for all admin pages. … … 110 110 * 111 111 * @since 2.1.0 112 112 */ 113 do_action( "admin_print_scripts- $hook_suffix" );113 do_action( "admin_print_scripts-{$hook_suffix}" ); 114 114 115 115 /** 116 116 * Fires when scripts are printed for all admin pages. … … 127 127 * 128 128 * @since 2.1.0 129 129 */ 130 do_action( "admin_head- $hook_suffix" );130 do_action( "admin_head-{$hook_suffix}" ); 131 131 132 132 /** 133 133 * Fires in head section for all admin pages. -
wp-admin/admin.php
209 209 * 210 210 * @since 2.1.0 211 211 */ 212 do_action( 'load-' . $page_hook);212 do_action( "load-{$page_hook}" ); 213 213 if (! isset($_GET['noheader'])) 214 214 require_once(ABSPATH . 'wp-admin/admin-header.php'); 215 215 … … 239 239 * 240 240 * @since 1.5.0 241 241 */ 242 do_action( 'load-' . $plugin_page);242 do_action( "load-{$plugin_page}" ); 243 243 244 244 if ( !isset($_GET['noheader'])) 245 245 require_once(ABSPATH . 'wp-admin/admin-header.php'); … … 278 278 * 279 279 * @since 3.5.0 280 280 */ 281 do_action( 'load-importer-' . $importer);281 do_action( "load-importer-{$importer}" ); 282 282 283 283 $parent_file = 'tools.php'; 284 284 $submenu_file = 'import.php'; … … 326 326 * 327 327 * @since 2.1.0 328 328 */ 329 do_action( 'load-' . $pagenow);329 do_action( "load-{$pagenow}" ); 330 330 331 331 /* 332 332 * The following hooks are fired to ensure backward compatibility. -
wp-admin/edit-form-advanced.php
331 331 * 332 332 * @param WP_Post $post Post object. 333 333 */ 334 do_action( 'add_meta_boxes_' . $post_type, $post );334 do_action( "add_meta_boxes_{$post_type}", $post ); 335 335 336 336 /** 337 337 * Fires after meta boxes have been added. -
wp-admin/includes/class-wp-automatic-updater.php
176 176 * @param bool $update Whether to update. 177 177 * @param object $item The update offer. 178 178 */ 179 $update = apply_filters( 'auto_update_' . $type, $update, $item );179 $update = apply_filters( "auto_update_{$type}", $update, $item ); 180 180 181 181 if ( ! $update ) { 182 182 if ( 'core' == $type ) -
wp-admin/includes/class-wp-ms-themes-list-table.php
518 518 * @param WP_Theme $theme The current WP_Theme object. 519 519 * @param string $context Status of the theme. 520 520 */ 521 $actions = apply_filters( "theme_action_links_ $stylesheet", $actions, $theme, $context );521 $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context ); 522 522 523 523 echo $this->row_actions( $actions, true ); 524 524 } … … 726 726 * @param WP_Theme $theme Current WP_Theme object. 727 727 * @param string $status Status of the theme. 728 728 */ 729 do_action( "after_theme_row_ $stylesheet", $stylesheet, $theme, $status );729 do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status ); 730 730 } 731 731 } -
wp-admin/includes/class-wp-plugin-install-list-table.php
200 200 * 201 201 * @param array|bool $args Plugin Install API arguments. 202 202 */ 203 $args = apply_filters( "install_plugins_table_api_args_ $tab", $args );203 $args = apply_filters( "install_plugins_table_api_args_{$tab}", $args ); 204 204 205 205 if ( !$args ) 206 206 return; -
wp-admin/includes/class-wp-plugins-list-table.php
864 864 * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use', 865 865 * 'Drop-ins', 'Search'. 866 866 */ 867 do_action( "after_plugin_row_ $plugin_file", $plugin_file, $plugin_data, $status );867 do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status ); 868 868 } 869 869 870 870 /** -
wp-admin/includes/class-wp-theme-install-list-table.php
134 134 * 135 135 * @param array $args An array of themes API arguments. 136 136 */ 137 $args = apply_filters( 'install_themes_table_api_args_' . $tab, $args );137 $args = apply_filters( "install_themes_table_api_args_{$tab}", $args ); 138 138 139 139 if ( ! $args ) 140 140 return; -
wp-admin/includes/media.php
619 619 * 620 620 * @param string $upload_iframe_src The upload iframe source URL by type. 621 621 */ 622 $upload_iframe_src = apply_filters( $type . '_upload_iframe_src', $upload_iframe_src );622 $upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src ); 623 623 624 624 return add_query_arg('TB_iframe', true, $upload_iframe_src); 625 625 } … … 787 787 * @param string $src Media source URL. 788 788 * @param string $title Media title. 789 789 */ 790 $html = apply_filters( $type . '_send_to_editor_url', $html, esc_url_raw( $src ), $title );790 $html = apply_filters( "{$type}_send_to_editor_url", $html, esc_url_raw( $src ), $title ); 791 791 } else { 792 792 $align = ''; 793 793 $alt = esc_attr( wp_unslash( $_POST['alt'] ) ); -
wp-admin/includes/plugin.php
588 588 * @param bool $network_wide Whether to enable the plugin for all sites in the network 589 589 * or just the current site. Multisite only. Default is false. 590 590 */ 591 do_action( 'activate_' . $plugin, $network_wide );591 do_action( "activate_{$plugin}", $network_wide ); 592 592 } 593 593 594 594 if ( $network_wide ) { -
wp-admin/includes/revision.php
70 70 * @param string null The context of whether the current revision is the old 71 71 * or the new one. Values are 'to' or 'from'. 72 72 */ 73 $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_ $field", $compare_from->$field, $field, $compare_from, 'from' ) : '';73 $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : ''; 74 74 75 75 /** This filter is documented in wp-admin/includes/revision.php */ 76 $content_to = apply_filters( "_wp_post_revision_field_ $field", $compare_to->$field, $field, $compare_to, 'to' );76 $content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' ); 77 77 78 78 $args = array( 79 79 'show_split_view' => true -
wp-admin/media-upload.php
95 95 * 96 96 * @since 2.5.0 97 97 */ 98 do_action( "media_upload_ $type" );98 do_action( "media_upload_{$type}" ); 99 99 } else { 100 100 /** 101 101 * Fires inside limited and specific upload-tab views in the legacy … … 107 107 * 108 108 * @since 2.5.0 109 109 */ 110 do_action( "media_upload_ $tab" );110 do_action( "media_upload_{$tab}" ); 111 111 } 112 112 -
wp-admin/plugin-install.php
64 64 * 65 65 * @since 2.7.0 66 66 */ 67 do_action( "install_plugins_pre_ $tab" );67 do_action( "install_plugins_pre_{$tab}" ); 68 68 69 69 /* 70 70 * Call the pre upload action on every non-upload plugin install screen … … 155 155 * 156 156 * @param int $paged The current page number of the plugins list table. 157 157 */ 158 do_action( "install_plugins_ $tab", $paged ); ?>158 do_action( "install_plugins_{$tab}", $paged ); ?> 159 159 160 160 <span class="spinner"></span> 161 161 </div> -
wp-includes/option.php
534 534 * 535 535 * @param string $option Name of the deleted option. 536 536 */ 537 do_action( "delete_option_ $option", $option );537 do_action( "delete_option_{$option}", $option ); 538 538 539 539 /** 540 540 * Fires after an option has been deleted. … … 568 568 * 569 569 * @param string $transient Transient name. 570 570 */ 571 do_action( 'delete_transient_' . $transient, $transient );571 do_action( "delete_transient_{$transient}", $transient ); 572 572 573 573 if ( wp_using_ext_object_cache() ) { 574 574 $result = wp_cache_delete( $transient, 'transient' ); … … 758 758 * @param int $expiration Time until expiration in seconds. 759 759 * @param string $transient The name of the transient. 760 760 */ 761 do_action( 'set_transient_' . $transient, $value, $expiration, $transient );761 do_action( "set_transient_{$transient}", $value, $expiration, $transient ); 762 762 763 763 /** 764 764 * Fires after the value for a transient has been set. … … 1271 1271 * @param string $option Name of the network option. 1272 1272 * @param mixed $value Value of the network option. 1273 1273 */ 1274 do_action( 'add_site_option_' . $option, $option, $value );1274 do_action( "add_site_option_{$option}", $option, $value ); 1275 1275 1276 1276 /** 1277 1277 * Fires after a network option has been successfully added. … … 1327 1327 * 1328 1328 * @param string $option Option name. 1329 1329 */ 1330 do_action( 'pre_delete_site_option_' . $option, $option );1330 do_action( "pre_delete_site_option_{$option}", $option ); 1331 1331 1332 1332 if ( ! is_multisite() ) { 1333 1333 $result = delete_option( $option ); … … 1354 1354 * 1355 1355 * @param string $option Name of the network option. 1356 1356 */ 1357 do_action( 'delete_site_option_' . $option, $option );1357 do_action( "delete_site_option_{$option}", $option ); 1358 1358 1359 1359 /** 1360 1360 * Fires after a network option has been deleted. … … 1462 1462 * @param mixed $value Current value of the network option. 1463 1463 * @param mixed $old_value Old value of the network option. 1464 1464 */ 1465 do_action( 'update_site_option_' . $option, $option, $value, $old_value );1465 do_action( "update_site_option_{$option}", $option, $value, $old_value ); 1466 1466 1467 1467 /** 1468 1468 * Fires after the value of a network option has been successfully updated. … … 1500 1500 * 1501 1501 * @param string $transient Transient name. 1502 1502 */ 1503 do_action( 'delete_site_transient_' . $transient, $transient );1503 do_action( "delete_site_transient_{$transient}", $transient ); 1504 1504 1505 1505 if ( wp_using_ext_object_cache() ) { 1506 1506 $result = wp_cache_delete( $transient, 'site-transient' ); … … 1671 1671 * @param int $expiration Time until expiration in seconds. 1672 1672 * @param string $transient Transient name. 1673 1673 */ 1674 do_action( 'set_site_transient_' . $transient, $value, $expiration, $transient );1674 do_action( "set_site_transient_{$transient}", $value, $expiration, $transient ); 1675 1675 1676 1676 /** 1677 1677 * Fires after the value for a site transient has been set.