Ticket #37748: 37748.patch
File 37748.patch, 6.0 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-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.