Ticket #30082: add-class-argument-to-wp_dropdown_pages.patch
| File add-class-argument-to-wp_dropdown_pages.patch, 890 bytes (added by , 11 years ago) |
|---|
-
post-template.php
939 939 $defaults = array( 940 940 'depth' => 0, 'child_of' => 0, 941 941 'selected' => 0, 'echo' => 1, 942 'name' => 'page_id', 'id' => '', 942 'name' => 'page_id', 'id' => '', 'class' => '', 943 943 'show_option_none' => '', 'show_option_no_change' => '', 944 944 'option_none_value' => '' 945 945 ); … … 954 954 } 955 955 956 956 if ( ! empty( $pages ) ) { 957 $output = "<select name='" . esc_attr( $r['name'] ) . "' id='" . esc_attr( $r['id'] ) . "' >\n";957 $output = "<select name='" . esc_attr( $r['name'] ) . "' id='" . esc_attr( $r['id'] ) . "' class='" . esc_attr( $r['class'] ) . "'>\n"; 958 958 if ( $r['show_option_no_change'] ) { 959 959 $output .= "\t<option value=\"-1\">" . $r['show_option_no_change'] . "</option>\n"; 960 960 }