From 6b80da9d969ecd4711e27aff8dffdbecc5b217ef Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 21:09:19 +0000 Subject: [PATCH] In `Walker::walk()` and `Walker::paged_walk()`, `$id_field` is set and never used. See #27882. Built from https://develop.svn.wordpress.org/trunk@28322 git-svn-id: http://core.svn.wordpress.org/trunk@28150 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-walker.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php index 547defee81..6373db57a0 100644 --- a/wp-includes/class-wp-walker.php +++ b/wp-includes/class-wp-walker.php @@ -189,7 +189,6 @@ class Walker { if (empty($elements)) //nothing to walk return $output; - $id_field = $this->db_fields['id']; $parent_field = $this->db_fields['parent']; // flat display @@ -276,7 +275,6 @@ class Walker { $args = array_slice( func_get_args(), 4 ); $output = ''; - $id_field = $this->db_fields['id']; $parent_field = $this->db_fields['parent']; $count = -1;