Changeset 38307
- Timestamp:
- 08/22/2016 06:24:48 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-footer.php
r38022 r38307 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 /** … … 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 -
trunk/src/wp-admin/admin-header.php
r37560 r38307 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 /** … … 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 /** … … 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 /** -
trunk/src/wp-admin/admin.php
r38015 r38307 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'); … … 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'])) … … 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'; … … 327 327 * @since 2.1.0 328 328 */ 329 do_action( 'load-' . $pagenow);329 do_action( "load-{$pagenow}" ); 330 330 331 331 /* -
trunk/src/wp-admin/edit-form-advanced.php
r38029 r38307 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 /** -
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r38242 r38307 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 ) { -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r38071 r38307 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 ); … … 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 } -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r38221 r38307 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 ) -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r38149 r38307 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 -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r37937 r38307 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 ) -
trunk/src/wp-admin/includes/media.php
r38294 r38307 619 619 * @param string $upload_iframe_src The upload iframe source URL by type. 620 620 */ 621 $upload_iframe_src = apply_filters( $type . '_upload_iframe_src', $upload_iframe_src );621 $upload_iframe_src = apply_filters( "{$type}_upload_iframe_src", $upload_iframe_src ); 622 622 623 623 return add_query_arg('TB_iframe', true, $upload_iframe_src); … … 787 787 * @param string $title Media title. 788 788 */ 789 $html = apply_filters( $type . '_send_to_editor_url', $html, esc_url_raw( $src ), $title );789 $html = apply_filters( "{$type}_send_to_editor_url", $html, esc_url_raw( $src ), $title ); 790 790 } else { 791 791 $align = ''; -
trunk/src/wp-admin/includes/plugin.php
r38167 r38307 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 … … 702 702 * or just the current site. Multisite only. Default is false. 703 703 */ 704 do_action( 'deactivate_' . $plugin, $network_deactivating );704 do_action( "deactivate_{$plugin}", $network_deactivating ); 705 705 706 706 /** -
trunk/src/wp-admin/includes/revision.php
r37488 r38307 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( -
trunk/src/wp-admin/media-upload.php
r37914 r38307 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 /** … … 108 108 * @since 2.5.0 109 109 */ 110 do_action( "media_upload_ $tab" );110 do_action( "media_upload_{$tab}" ); 111 111 } 112 112 -
trunk/src/wp-admin/plugin-install.php
r38172 r38307 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 /* … … 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> -
trunk/src/wp-includes/category-template.php
r38121 r38307 1260 1260 * @param array $links An array of term links. 1261 1261 */ 1262 $term_links = apply_filters( "term_links- $taxonomy", $links );1262 $term_links = apply_filters( "term_links-{$taxonomy}", $links ); 1263 1263 1264 1264 return $before . join( $sep, $term_links ) . $after; -
trunk/src/wp-includes/class-wp-customize-control.php
r37491 r38307 384 384 * @param WP_Customize_Control $this WP_Customize_Control instance. 385 385 */ 386 do_action( 'customize_render_control_' . $this->id, $this );386 do_action( "customize_render_control_{$this->id}", $this ); 387 387 388 388 $this->render(); -
trunk/src/wp-includes/class-wp-rewrite.php
r37539 r38307 1414 1414 * @param array $rules The rewrite rules generated for the current permastruct. 1415 1415 */ 1416 $rules = apply_filters( $permastructname . '_rewrite_rules', $rules );1416 $rules = apply_filters( "{$permastructname}_rewrite_rules", $rules ); 1417 1417 if ( 'post_tag' == $permastructname ) { 1418 1418 -
trunk/src/wp-includes/option.php
r37985 r38307 50 50 * @param string $option Option name. 51 51 */ 52 $pre = apply_filters( 'pre_option_' . $option, false, $option );52 $pre = apply_filters( "pre_option_{$option}", false, $option ); 53 53 if ( false !== $pre ) 54 54 return $pre; … … 73 73 * @param string $option Option name. 74 74 */ 75 return apply_filters( 'default_option_' . $option, $default, $option );75 return apply_filters( "default_option_{$option}", $default, $option ); 76 76 } 77 77 … … 134 134 * @param string $option Option name. 135 135 */ 136 return apply_filters( 'option_' . $option, maybe_unserialize( $value ), $option );136 return apply_filters( "option_{$option}", maybe_unserialize( $value ), $option ); 137 137 } 138 138 … … 278 278 * @param string $option Option name. 279 279 */ 280 $value = apply_filters( 'pre_update_option_' . $option, $value, $old_value, $option );280 $value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option ); 281 281 282 282 /** … … 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 /** … … 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() ) { … … 625 625 * @param string $transient Transient name. 626 626 */ 627 $pre = apply_filters( 'pre_transient_' . $transient, false, $transient );627 $pre = apply_filters( "pre_transient_{$transient}", false, $transient ); 628 628 if ( false !== $pre ) 629 629 return $pre; … … 662 662 * @param string $transient Transient name. 663 663 */ 664 return apply_filters( 'transient_' . $transient, $value, $transient );664 return apply_filters( "transient_{$transient}", $value, $transient ); 665 665 } 666 666 … … 697 697 * @param string $transient Transient name. 698 698 */ 699 $value = apply_filters( 'pre_set_transient_' . $transient, $value, $expiration, $transient );699 $value = apply_filters( "pre_set_transient_{$transient}", $value, $expiration, $transient ); 700 700 701 701 /** … … 710 710 * @param string $transient Transient name. 711 711 */ 712 $expiration = apply_filters( 'expiration_of_transient_' . $transient, $expiration, $value, $transient );712 $expiration = apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient ); 713 713 714 714 if ( wp_using_ext_object_cache() ) { … … 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 /** … … 1107 1107 * @param string $option Option name. 1108 1108 */ 1109 $pre = apply_filters( 'pre_site_option_' . $option, false, $option );1109 $pre = apply_filters( "pre_site_option_{$option}", false, $option ); 1110 1110 1111 1111 if ( false !== $pre ) { … … 1131 1131 * @param string $option Option name. 1132 1132 */ 1133 return apply_filters( 'default_site_option_' . $option, $default, $option );1133 return apply_filters( "default_site_option_{$option}", $default, $option ); 1134 1134 } 1135 1135 … … 1175 1175 * @param string $option Option name. 1176 1176 */ 1177 return apply_filters( 'site_option_' . $option, $value, $option );1177 return apply_filters( "site_option_{$option}", $value, $option ); 1178 1178 } 1179 1179 … … 1223 1223 * @param string $option Option name. 1224 1224 */ 1225 $value = apply_filters( 'pre_add_site_option_' . $option, $value, $option );1225 $value = apply_filters( "pre_add_site_option_{$option}", $value, $option ); 1226 1226 1227 1227 $notoptions_key = "$network_id:notoptions"; … … 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 /** … … 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() ) { … … 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 /** … … 1418 1418 * @param string $option Option name. 1419 1419 */ 1420 $value = apply_filters( 'pre_update_site_option_' . $option, $value, $old_value, $option );1420 $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option ); 1421 1421 1422 1422 if ( $value === $old_value ) { … … 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 /** … … 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() ) { … … 1558 1558 * @param string $transient Transient name. 1559 1559 */ 1560 $pre = apply_filters( 'pre_site_transient_' . $transient, false, $transient );1560 $pre = apply_filters( "pre_site_transient_{$transient}", false, $transient ); 1561 1561 1562 1562 if ( false !== $pre ) … … 1594 1594 * @param string $transient Transient name. 1595 1595 */ 1596 return apply_filters( 'site_transient_' . $transient, $value, $transient );1596 return apply_filters( "site_transient_{$transient}", $value, $transient ); 1597 1597 } 1598 1598 … … 1626 1626 * @param string $transient Transient name. 1627 1627 */ 1628 $value = apply_filters( 'pre_set_site_transient_' . $transient, $value, $transient );1628 $value = apply_filters( "pre_set_site_transient_{$transient}", $value, $transient ); 1629 1629 1630 1630 $expiration = (int) $expiration; … … 1641 1641 * @param string $transient Transient name. 1642 1642 */ 1643 $expiration = apply_filters( 'expiration_of_site_transient_' . $transient, $expiration, $value, $transient );1643 $expiration = apply_filters( "expiration_of_site_transient_{$transient}", $expiration, $value, $transient ); 1644 1644 1645 1645 if ( wp_using_ext_object_cache() ) { … … 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 /** -
trunk/src/wp-includes/taxonomy.php
r38292 r38307 872 872 * @param string $taxonomy The taxonomy slug. 873 873 */ 874 $_term = apply_filters( "get_ $taxonomy", $_term, $taxonomy );874 $_term = apply_filters( "get_{$taxonomy}", $_term, $taxonomy ); 875 875 876 876 // Bail if a filter callback has changed the type of the `$_term` object. … … 1916 1916 * @param array $object_ids List of term object IDs. 1917 1917 */ 1918 do_action( "delete_ $taxonomy", $term, $tt_id, $deleted_term, $object_ids );1918 do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids ); 1919 1919 1920 1920 return true; … … 2407 2407 * @param int $tt_id Term taxonomy ID. 2408 2408 */ 2409 do_action( "create_ $taxonomy", $term_id, $tt_id );2409 do_action( "create_{$taxonomy}", $term_id, $tt_id ); 2410 2410 2411 2411 /** … … 2443 2443 * @param int $tt_id Term taxonomy ID. 2444 2444 */ 2445 do_action( "created_ $taxonomy", $term_id, $tt_id );2445 do_action( "created_{$taxonomy}", $term_id, $tt_id ); 2446 2446 2447 2447 return array('term_id' => $term_id, 'term_taxonomy_id' => $tt_id); … … 2988 2988 * @param int $tt_id Term taxonomy ID. 2989 2989 */ 2990 do_action( "edit_ $taxonomy", $term_id, $tt_id );2990 do_action( "edit_{$taxonomy}", $term_id, $tt_id ); 2991 2991 2992 2992 /** This filter is documented in wp-includes/taxonomy.php */ … … 3017 3017 * @param int $tt_id Term taxonomy ID. 3018 3018 */ 3019 do_action( "edited_ $taxonomy", $term_id, $tt_id );3019 do_action( "edited_{$taxonomy}", $term_id, $tt_id ); 3020 3020 3021 3021 return array('term_id' => $term_id, 'term_taxonomy_id' => $tt_id); -
trunk/src/wp-includes/theme.php
r37985 r38307 903 903 * @param string $old_value The current value of the theme mod. 904 904 */ 905 $mods[ $name ] = apply_filters( "pre_set_theme_mod_ $name", $value, $old_value );905 $mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value ); 906 906 907 907 $theme = get_option( 'stylesheet' ); -
trunk/src/wp-login.php
r38304 r38307 427 427 * @since 2.8.0 428 428 */ 429 do_action( 'login_form_' . $action);429 do_action( "login_form_{$action}" ); 430 430 431 431 $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
Note: See TracChangeset
for help on using the changeset viewer.