Changeset 12882
- Timestamp:
- 01/27/2010 09:29:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r12877 r12882 692 692 'depth' => 0, 'child_of' => 0, 693 693 'selected' => 0, 'echo' => 1, 694 'name' => 'page_id', 'show_option_none' => '', 'show_option_no_change' => '', 694 'name' => 'page_id', 'id' => '', 695 'show_option_none' => '', 'show_option_no_change' => '', 695 696 'option_none_value' => '' 696 697 ); … … 702 703 $output = ''; 703 704 $name = esc_attr($name); 705 // Back-compat with old system where both id and name were based on $name argument 706 if ( empty($id) ) 707 $id = $name; 704 708 705 709 if ( ! empty($pages) ) { 706 $output = "<select name=\"$name\" id=\"$ name\">\n";710 $output = "<select name=\"$name\" id=\"$id\">\n"; 707 711 if ( $show_option_no_change ) 708 712 $output .= "\t<option value=\"-1\">$show_option_no_change</option>";
Note: See TracChangeset
for help on using the changeset viewer.