Changeset 34280
- Timestamp:
- 09/18/2015 06:06:17 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r34243 r34280 1196 1196 * Default 'menu_order, post_title'. 1197 1197 * @type string $menu_class Class to use for the div ID containing the page list. Default 'menu'. 1198 * @type string $menu_tag Element to use for the element containing the page list. Default 'div'. 1198 1199 * @type bool $echo Whether to echo the list or return it. Accepts true (echo) or false (return). 1199 1200 * Default true. … … 1212 1213 'sort_column' => 'menu_order, post_title', 1213 1214 'menu_class' => 'menu', 1215 'menu_tag' => 'div', 1214 1216 'echo' => true, 1215 1217 'show_home' => false, … … 1265 1267 $menu = $args['before'] . $menu . $args['after']; 1266 1268 } 1267 $menu = '<div class="' . esc_attr($args['menu_class']) . '">' . $menu . "</div>\n"; 1269 $tag = sanitize_text_field( $args['menu_tag'] ); 1270 $menu = "<{$args['menu_tag']} class=\"" . esc_attr( $args['menu_class'] ) . '">' . $menu . "</{$args['menu_tag']}>\n"; 1268 1271 1269 1272 /**
Note: See TracChangeset
for help on using the changeset viewer.