Changeset 56586
- Timestamp:
- 09/14/2023 12:44:23 PM (15 months ago)
- Location:
- trunk/src
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
r56547 r56586 62 62 63 63 // Restores the more descriptive, specific name for use within this method. 64 $menu_item = $data_object; 64 $menu_item = $data_object; 65 65 66 $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; 66 67 -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r56450 r56586 686 686 687 687 // Restores the more descriptive, specific name for use within this method. 688 $comment = $item; 688 $comment = $item; 689 689 690 $the_comment_status = wp_get_comment_status( $comment ); 690 691 … … 1088 1089 */ 1089 1090 public function column_default( $item, $column_name ) { 1091 // Restores the more descriptive, specific name for use within this method. 1092 $comment = $item; 1093 1090 1094 /** 1091 1095 * Fires when the default column output is displayed for a single row. … … 1096 1100 * @param string $comment_id The comment ID as a numeric string. 1097 1101 */ 1098 do_action( 'manage_comments_custom_column', $column_name, $ item->comment_ID );1102 do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); 1099 1103 } 1100 1104 } -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r56450 r56586 291 291 */ 292 292 public function column_default( $item, $column_name ) { 293 // Restores the more descriptive, specific name for use within this method. 294 $link = $item; 295 293 296 /** 294 297 * Fires for each registered custom link column. … … 299 302 * @param int $link_id Link ID. 300 303 */ 301 do_action( 'manage_link_custom_column', $column_name, $ item->link_id );304 do_action( 'manage_link_custom_column', $column_name, $link->link_id ); 302 305 } 303 306 … … 333 336 334 337 // Restores the more descriptive, specific name for use within this method. 335 $link = $item; 338 $link = $item; 339 336 340 $edit_link = get_edit_bookmark_link( $link ); 337 341 -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r56450 r56586 881 881 } 882 882 883 // Restores the more descriptive, specific name for use within this method. 884 $post = $item; 885 883 886 $att_title = _draft_or_post_title(); 884 $actions = $this->_get_row_actions( 885 $item, // WP_Post object for an attachment. 886 $att_title 887 ); 887 $actions = $this->_get_row_actions( $post, $att_title ); 888 888 889 889 return $this->row_actions( $actions ); -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r56450 r56586 598 598 */ 599 599 public function column_default( $item, $column_name ) { 600 // Restores the more descriptive, specific name for use within this method. 601 $blog = $item; 602 600 603 /** 601 604 * Fires for each registered custom column in the Sites list table. … … 606 609 * @param int $blog_id The site ID. 607 610 */ 608 do_action( 'manage_sites_custom_column', $column_name, $ item['blog_id'] );611 do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] ); 609 612 } 610 613 … … 715 718 716 719 // Restores the more descriptive, specific name for use within this method. 717 $blog = $item; 720 $blog = $item; 721 718 722 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 719 723 -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r56450 r56586 510 510 public function column_cb( $item ) { 511 511 // Restores the more descriptive, specific name for use within this method. 512 $theme = $item; 512 $theme = $item; 513 513 514 $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); 514 515 ?> … … 879 880 */ 880 881 public function column_default( $item, $column_name ) { 882 // Restores the more descriptive, specific name for use within this method. 883 $theme = $item; 884 885 $stylesheet = $theme->get_stylesheet(); 886 881 887 /** 882 888 * Fires inside each custom column of the Multisite themes list table. … … 888 894 * @param WP_Theme $theme Current WP_Theme object. 889 895 */ 890 do_action( 891 'manage_themes_custom_column', 892 $column_name, 893 $item->get_stylesheet(), // Directory name of the theme. 894 $item // Theme object. 895 ); 896 do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme ); 896 897 } 897 898 -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r56450 r56586 459 459 */ 460 460 public function column_default( $item, $column_name ) { 461 // Restores the more descriptive, specific name for use within this method. 462 $user = $item; 463 461 464 /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */ 462 echo apply_filters( 463 'manage_users_custom_column', 464 '', // Custom column output. Default empty. 465 $column_name, 466 $item->ID // User ID. 467 ); 465 echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID ); 468 466 } 469 467 … … 520 518 521 519 // Restores the more descriptive, specific name for use within this method. 522 $user = $item; 520 $user = $item; 521 523 522 $super_admins = get_super_admins(); 524 525 $actions = array(); 523 $actions = array(); 526 524 527 525 if ( current_user_can( 'edit_user', $user->ID ) ) { -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r56571 r56586 1020 1020 // Restores the more descriptive, specific name for use within this method. 1021 1021 $post = $item; 1022 1022 1023 $show = current_user_can( 'edit_post', $post->ID ); 1023 1024 … … 1459 1460 1460 1461 // Restores the more descriptive, specific name for use within this method. 1461 $post = $item; 1462 $post = $item; 1463 1462 1464 $post_type_object = get_post_type_object( $post->post_type ); 1463 1465 $can_edit_post = current_user_can( 'edit_post', $post->ID ); -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r56571 r56586 465 465 466 466 // Restores the more descriptive, specific name for use within this method. 467 $tag = $item; 467 $tag = $item; 468 468 469 $taxonomy = $this->screen->taxonomy; 469 470 $uri = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI']; … … 627 628 */ 628 629 public function column_default( $item, $column_name ) { 630 // Restores the more descriptive, specific name for use within this method. 631 $tag = $item; 632 629 633 /** 630 634 * Filters the displayed columns in the terms list table. … … 644 648 * @param int $term_id Term ID. 645 649 */ 646 return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $ item->term_id );650 return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id ); 647 651 } 648 652 -
trunk/src/wp-includes/class-walker-category-dropdown.php
r52652 r56586 60 60 // Restores the more descriptive, specific name for use within this method. 61 61 $category = $data_object; 62 $pad = str_repeat( ' ', $depth * 3 ); 62 63 $pad = str_repeat( ' ', $depth * 3 ); 63 64 64 65 /** This filter is documented in wp-includes/category-template.php */ -
trunk/src/wp-includes/class-walker-page-dropdown.php
r55905 r56586 63 63 // Restores the more descriptive, specific name for use within this method. 64 64 $page = $data_object; 65 $pad = str_repeat( ' ', $depth * 3 ); 65 66 $pad = str_repeat( ' ', $depth * 3 ); 66 67 67 68 if ( ! isset( $args['value_field'] ) || ! isset( $page->{$args['value_field']} ) ) { -
trunk/src/wp-includes/class-walker-page.php
r56547 r56586 105 105 public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) { 106 106 // Restores the more descriptive, specific name for use within this method. 107 $page = $data_object; 107 $page = $data_object; 108 108 109 $current_page_id = $current_object_id; 109 110 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r56547 r56586 732 732 public function prepare_item_for_response( $item, $request ) { 733 733 // Restores the more descriptive, specific name for use within this method. 734 $post = $item; 734 $post = $item; 735 735 736 $response = parent::prepare_item_for_response( $post, $request ); 736 737 $fields = $this->get_fields_for_response( $request ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r56548 r56586 410 410 public function prepare_item_for_response( $item, $request ) { 411 411 // Restores the more descriptive, specific name for use within this method. 412 $post = $item; 412 $post = $item; 413 413 414 $response = $this->revisions_controller->prepare_item_for_response( $post, $request ); 414 415 $fields = $this->get_fields_for_response( $request ); 415 $fields = $this->get_fields_for_response( $request ); 416 416 417 417 if ( in_array( 'preview_link', $fields, true ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
r56547 r56586 247 247 // Restores the more descriptive, specific name for use within this method. 248 248 $block_type = $item; 249 $fields = $this->get_fields_for_response( $request ); 250 $data = array(); 249 250 $fields = $this->get_fields_for_response( $request ); 251 $data = array(); 251 252 252 253 if ( rest_is_field_included( 'attributes', $fields ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r56193 r56586 1040 1040 // Restores the more descriptive, specific name for use within this method. 1041 1041 $comment = $item; 1042 $fields = $this->get_fields_for_response( $request ); 1043 $data = array(); 1042 1043 $fields = $this->get_fields_for_response( $request ); 1044 $data = array(); 1044 1045 1045 1046 if ( in_array( 'id', $fields, true ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r56575 r56586 368 368 369 369 // Base fields for every post. 370 $fields = $this->get_fields_for_response( $request ); 370 371 $data = array(); 371 $fields = $this->get_fields_for_response( $request );372 372 373 373 if ( rest_is_field_included( 'id', $fields ) ) { … … 604 604 605 605 $theme = WP_Theme_JSON_Resolver::get_merged_data( 'theme' ); 606 $fields = $this->get_fields_for_response( $request ); 606 607 $data = array(); 607 $fields = $this->get_fields_for_response( $request );608 608 609 609 if ( rest_is_field_included( 'settings', $fields ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php
r56415 r56586 169 169 public function prepare_item_for_response( $item, $request ) { 170 170 // Restores the more descriptive, specific name for use within this method. 171 $location = $item; 171 $location = $item; 172 172 173 $locations = get_nav_menu_locations(); 173 174 $menu = isset( $locations[ $location->name ] ) ? $locations[ $location->name ] : 0; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r55234 r56586 194 194 public function prepare_item_for_response( $item, $request ) { 195 195 // Restores the more descriptive, specific name for use within this method. 196 $raw_pattern = $item; 196 $raw_pattern = $item; 197 197 198 $prepared_pattern = array( 198 199 'id' => absint( $raw_pattern->id ), -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
r56547 r56586 223 223 // Restores the more descriptive, specific name for use within this method. 224 224 $status = $item; 225 225 226 $fields = $this->get_fields_for_response( $request ); 226 227 $data = array(); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r54288 r56586 177 177 public function prepare_item_for_response( $item, $request ) { 178 178 // Restores the more descriptive, specific name for use within this method. 179 $post_type = $item; 179 $post_type = $item; 180 180 181 $taxonomies = wp_list_filter( get_object_taxonomies( $post_type->name, 'objects' ), array( 'show_in_rest' => true ) ); 181 182 $taxonomies = wp_list_pluck( $taxonomies, 'name' ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r56548 r56586 1749 1749 public function prepare_item_for_response( $item, $request ) { 1750 1750 // Restores the more descriptive, specific name for use within this method. 1751 $post = $item; 1751 $post = $item; 1752 1752 1753 $GLOBALS['post'] = $post; 1753 1754 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r56548 r56586 548 548 public function prepare_item_for_response( $item, $request ) { 549 549 // Restores the more descriptive, specific name for use within this method. 550 $post = $item; 550 $post = $item; 551 551 552 $GLOBALS['post'] = $post; 552 553 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
r55293 r56586 196 196 // Restores the more descriptive, specific name for use within this method. 197 197 $item_id = $item; 198 198 199 $handler = $this->get_search_handler( $request ); 199 200 if ( is_wp_error( $handler ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php
r56195 r56586 321 321 // Restores the more descriptive, specific name for use within this method. 322 322 $raw_sidebar = $item; 323 $id = $raw_sidebar['id']; 324 $sidebar = array( 'id' => $id ); 323 324 $id = $raw_sidebar['id']; 325 $sidebar = array( 'id' => $id ); 325 326 326 327 if ( isset( $wp_registered_sidebars[ $id ] ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php
r54471 r56586 210 210 // Restores the more descriptive, specific name for use within this method. 211 211 $taxonomy = $item; 212 $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name; 212 213 $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name; 213 214 214 215 $fields = $this->get_fields_for_response( $request ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r56415 r56586 232 232 public function prepare_item_for_response( $item, $request ) { 233 233 // Restores the more descriptive, specific name for use within this method. 234 $theme = $item; 234 $theme = $item; 235 236 $fields = $this->get_fields_for_response( $request ); 235 237 $data = array(); 236 $fields = $this->get_fields_for_response( $request );237 238 238 239 if ( rest_is_field_included( 'stylesheet', $fields ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r56195 r56586 985 985 public function prepare_item_for_response( $item, $request ) { 986 986 // Restores the more descriptive, specific name for use within this method. 987 $user = $item; 987 $user = $item; 988 989 $fields = $this->get_fields_for_response( $request ); 988 990 $data = array(); 989 $fields = $this->get_fields_for_response( $request );990 991 991 992 if ( in_array( 'id', $fields, true ) ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
r56559 r56586 298 298 // Restores the more descriptive, specific name for use within this method. 299 299 $widget_type = $item; 300 $fields = $this->get_fields_for_response( $request ); 301 $data = array( 300 301 $fields = $this->get_fields_for_response( $request ); 302 $data = array( 302 303 'id' => $widget_type['id'], 303 304 ); -
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
r53302 r56586 61 61 public function get_url_list( $page_num, $object_subtype = '' ) { 62 62 // Restores the more descriptive, specific name for use within this method. 63 $taxonomy = $object_subtype; 63 $taxonomy = $object_subtype; 64 64 65 $supported_types = $this->get_object_subtypes(); 65 66
Note: See TracChangeset
for help on using the changeset viewer.