diff --git a/wp-admin/includes/class-walker-nav-menu-edit.php b/wp-admin/includes/class-walker-nav-menu-edit.php index 5869247d64..7cc7052cdb 100644 --- a/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/wp-admin/includes/class-walker-nav-menu-edit.php @@ -61,7 +61,8 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { global $_wp_nav_menu_max_depth; // Restores the more descriptive, specific name for use within this method. - $menu_item = $data_object; + $menu_item = $data_object; + $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; ob_start(); diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 7d87ae9aab..401dde0d97 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -685,7 +685,8 @@ class WP_Comments_List_Table extends WP_List_Table { } // Restores the more descriptive, specific name for use within this method. - $comment = $item; + $comment = $item; + $the_comment_status = wp_get_comment_status( $comment ); $output = ''; @@ -1087,6 +1088,9 @@ class WP_Comments_List_Table extends WP_List_Table { * @param string $column_name The custom column's name. */ public function column_default( $item, $column_name ) { + // Restores the more descriptive, specific name for use within this method. + $comment = $item; + /** * Fires when the default column output is displayed for a single row. * @@ -1095,6 +1099,6 @@ class WP_Comments_List_Table extends WP_List_Table { * @param string $column_name The custom column's name. * @param string $comment_id The comment ID as a numeric string. */ - do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID ); + do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); } } diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php index f29cf7b3e2..f8886df5fb 100644 --- a/wp-admin/includes/class-wp-links-list-table.php +++ b/wp-admin/includes/class-wp-links-list-table.php @@ -290,6 +290,9 @@ class WP_Links_List_Table extends WP_List_Table { * @param string $column_name Current column name. */ public function column_default( $item, $column_name ) { + // Restores the more descriptive, specific name for use within this method. + $link = $item; + /** * Fires for each registered custom link column. * @@ -298,7 +301,7 @@ class WP_Links_List_Table extends WP_List_Table { * @param string $column_name Name of the custom column. * @param int $link_id Link ID. */ - do_action( 'manage_link_custom_column', $column_name, $item->link_id ); + do_action( 'manage_link_custom_column', $column_name, $link->link_id ); } public function display_rows() { @@ -332,7 +335,8 @@ class WP_Links_List_Table extends WP_List_Table { } // Restores the more descriptive, specific name for use within this method. - $link = $item; + $link = $item; + $edit_link = get_edit_bookmark_link( $link ); $actions = array(); diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 9eae94ef92..712f6ae190 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -880,11 +880,11 @@ class WP_Media_List_Table extends WP_List_Table { return ''; } + // Restores the more descriptive, specific name for use within this method. + $post = $item; + $att_title = _draft_or_post_title(); - $actions = $this->_get_row_actions( - $item, // WP_Post object for an attachment. - $att_title - ); + $actions = $this->_get_row_actions( $post, $att_title ); return $this->row_actions( $actions ); } diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php index ec48bf37c7..7f8ca76d82 100644 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -597,6 +597,9 @@ class WP_MS_Sites_List_Table extends WP_List_Table { * @param string $column_name Current column name. */ public function column_default( $item, $column_name ) { + // Restores the more descriptive, specific name for use within this method. + $blog = $item; + /** * Fires for each registered custom column in the Sites list table. * @@ -605,7 +608,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { * @param string $column_name The name of the column to display. * @param int $blog_id The site ID. */ - do_action( 'manage_sites_custom_column', $column_name, $item['blog_id'] ); + do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] ); } /** @@ -714,7 +717,8 @@ class WP_MS_Sites_List_Table extends WP_List_Table { } // Restores the more descriptive, specific name for use within this method. - $blog = $item; + $blog = $item; + $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); // Preordered. diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 4b94e53921..ca80109400 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -509,7 +509,8 @@ class WP_MS_Themes_List_Table extends WP_List_Table { */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. - $theme = $item; + $theme = $item; + $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); ?>