Changeset 39600
- Timestamp:
- 12/14/2016 04:17:38 AM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r39552 r39600 84 84 85 85 if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) { 86 $screen = get_current_screen()->id; 87 86 88 /** 87 89 * Fires when a custom bulk action should be handled. … … 89 91 * The redirect link should be modified with success or failure feedback 90 92 * from the action to be used to display feedback to the user. 93 * 94 * The dynamic portion of the hook name, `$screen`, refers to the current screen ID. 91 95 * 92 96 * @since 4.7.0 … … 96 100 * @param array $items The items to take the action on. 97 101 */ 98 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids );102 $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); 99 103 } 100 104 -
trunk/src/wp-admin/includes/ajax-actions.php
r39326 r39600 2703 2703 2704 2704 /** This filter is documented in wp-admin/includes/media.php */ 2705 $html = apply_filters( $type . '_send_to_editor_url', $html, $src, $link_text );2705 $html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text ); 2706 2706 2707 2707 wp_send_json_success( $html ); -
trunk/src/wp-admin/includes/class-wp-list-table.php
r38672 r39600 733 733 * @param int $per_page Number of items to be displayed. Default 20. 734 734 */ 735 return (int) apply_filters( $option, $per_page );735 return (int) apply_filters( "{$option}", $per_page ); 736 736 } 737 737 -
trunk/src/wp-admin/includes/class-wp-screen.php
r37488 r39600 1163 1163 } else { 1164 1164 /** This filter is documented in wp-admin/includes/class-wp-list-table.php */ 1165 $per_page = apply_filters( $option, $per_page );1165 $per_page = apply_filters( "{$option}", $per_page ); 1166 1166 } 1167 1167 -
trunk/src/wp-admin/includes/plugin.php
r38687 r39600 1026 1026 include( WP_PLUGIN_DIR . '/' . $file ); 1027 1027 1028 add_action( 'uninstall_' . $file, $callable );1028 add_action( "uninstall_{$file}", $callable ); 1029 1029 1030 1030 /** … … 1036 1036 * @since 2.7.0 1037 1037 */ 1038 do_action( 'uninstall_' . $file);1038 do_action( "uninstall_{$file}" ); 1039 1039 } 1040 1040 } -
trunk/src/wp-admin/network/site-themes.php
r38957 r39600 125 125 $themes = (array) $_POST['checked']; 126 126 $n = count( $themes ); 127 $screen = get_current_screen()->id; 128 127 129 /** 128 130 * Fires when a custom bulk action should be handled. … … 130 132 * The redirect link should be modified with success or failure feedback 131 133 * from the action to be used to display feedback to the user. 134 * 135 * The dynamic portion of the hook name, `$screen`, refers to the current screen ID. 132 136 * 133 137 * @since 4.7.0 … … 136 140 * @param string $action The action being taken. 137 141 * @param array $items The items to take the action on. 138 * @param int $site_id The site id.142 * @param int $site_id The site ID. 139 143 */ 140 $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id );144 $referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); 141 145 } else { 142 146 $action = 'error'; -
trunk/src/wp-includes/author-template.php
r38341 r39600 149 149 * @param int|bool $original_user_id The original user ID, as passed to the function. 150 150 */ 151 return apply_filters( 'get_the_author_' . $field, $value, $user_id, $original_user_id );151 return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id ); 152 152 } 153 153 … … 175 175 * @param int $user_id The user ID. 176 176 */ 177 echo apply_filters( 'the_author_' . $field, $author_meta, $user_id );177 echo apply_filters( "the_author_{$field}", $author_meta, $user_id ); 178 178 } 179 179 -
trunk/src/wp-includes/bookmark.php
r39188 r39600 384 384 if ( 'edit' == $context ) { 385 385 /** This filter is documented in wp-includes/post.php */ 386 $value = apply_filters( "edit_ $field", $value, $bookmark_id );386 $value = apply_filters( "edit_{$field}", $value, $bookmark_id ); 387 387 388 388 if ( 'link_notes' == $field ) { … … 393 393 } elseif ( 'db' == $context ) { 394 394 /** This filter is documented in wp-includes/post.php */ 395 $value = apply_filters( "pre_ $field", $value );395 $value = apply_filters( "pre_{$field}", $value ); 396 396 } else { 397 397 /** This filter is documented in wp-includes/post.php */ 398 $value = apply_filters( $field, $value, $bookmark_id, $context );398 $value = apply_filters( "{$field}", $value, $bookmark_id, $context ); 399 399 400 400 if ( 'attribute' == $context ) { -
trunk/src/wp-includes/class-wp-customize-setting.php
r39318 r39600 481 481 } 482 482 483 $id_base = $this->id_data['base']; 484 483 485 /** 484 486 * Fires when the WP_Customize_Setting::save() method is called. 485 487 * 486 * The dynamic portion of the hook name, `$ this->id_data['base']` refers to488 * The dynamic portion of the hook name, `$id_base` refers to 487 489 * the base slug of the setting name. 488 490 * … … 491 493 * @param WP_Customize_Setting $this WP_Customize_Setting instance. 492 494 */ 493 do_action( 'customize_save_' . $this->id_data['base'], $this );495 do_action( "customize_save_{$id_base}", $this ); 494 496 495 497 $this->update( $value ); -
trunk/src/wp-includes/option.php
r39564 r39600 103 103 104 104 /** This filter is documented in wp-includes/option.php */ 105 return apply_filters( 'default_option_' . $option, $default, $option, $passed_default );105 return apply_filters( "default_option_{$option}", $default, $option, $passed_default ); 106 106 } 107 107 } … … 115 115 } else { 116 116 /** This filter is documented in wp-includes/option.php */ 117 return apply_filters( 'default_option_' . $option, $default, $option, $passed_default );117 return apply_filters( "default_option_{$option}", $default, $option, $passed_default ); 118 118 } 119 119 } … … 310 310 311 311 /** This filter is documented in wp-includes/option.php */ 312 if ( apply_filters( 'default_option_' . $option, false, $option, false ) === $old_value ) {312 if ( apply_filters( "default_option_{$option}", false, $option, false ) === $old_value ) { 313 313 // Default setting for new options is 'yes'. 314 314 if ( null === $autoload ) { … … 431 431 if ( !is_array( $notoptions ) || !isset( $notoptions[$option] ) ) 432 432 /** This filter is documented in wp-includes/option.php */ 433 if ( apply_filters( 'default_option_' . $option, false, $option, false ) !== get_option( $option ) )433 if ( apply_filters( "default_option_{$option}", false, $option, false ) !== get_option( $option ) ) 434 434 return false; 435 435 -
trunk/src/wp-includes/post.php
r39598 r39600 2062 2062 * 'attribute' and 'js'. 2063 2063 */ 2064 $value = apply_filters( $field, $value, $post_id, $context );2064 $value = apply_filters( "{$field}", $value, $post_id, $context ); 2065 2065 } else { 2066 2066 $value = apply_filters( "post_{$field}", $value, $post_id, $context ); -
trunk/src/wp-includes/user.php
r39486 r39600 1209 1209 1210 1210 /** This filter is documented in wp-includes/post.php */ 1211 $value = apply_filters( $field, $value, $user_id, $context );1211 $value = apply_filters( "{$field}", $value, $user_id, $context ); 1212 1212 } else { 1213 1213
Note: See TracChangeset
for help on using the changeset viewer.