Changeset 17269 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 01/12/2011 04:02:56 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-admin-bar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r17211 r17269 54 54 'parent' => false, // false for a root menu, pass the ID value for a submenu of that menu. 55 55 'id' => false, // defaults to a sanitized title value. 56 'meta' => false // array of any of the following options: array( 'html' => '', 'class' => '', 'onclick' => '', target => '' );56 'meta' => false // array of any of the following options: array( 'html' => '', 'class' => '', 'onclick' => '', target => '', title => '' ); 57 57 ); 58 58 … … 118 118 <li class="<?php echo $menuclass . "ab-$id" ?><?php 119 119 if ( ! empty( $menu_item['meta']['class'] ) ) : 120 echo ' ' . $menu_item['meta']['class'];120 echo ' ' . esc_attr( $menu_item['meta']['class'] ); 121 121 endif; 122 122 ?>"> 123 <a href="<?php echo strip_tags( $menu_item['href'] ) ?>"<?php123 <a href="<?php echo esc_url( $menu_item['href'] ) ?>"<?php 124 124 if ( ! empty( $menu_item['meta']['onclick'] ) ) : 125 ?> onclick="<?php echo $menu_item['meta']['onclick']; ?>"<?php125 ?> onclick="<?php echo esc_js( $menu_item['meta']['onclick'] ); ?>"<?php 126 126 endif; 127 127 if ( ! empty( $menu_item['meta']['target'] ) ) : 128 ?> target="<?php echo $menu_item['meta']['target']; ?>"<?php 128 ?> target="<?php echo esc_attr( $menu_item['meta']['target'] ); ?>"<?php 129 endif; 130 if ( ! empty( $menu_item['meta']['title'] ) ) : 131 ?> title="<?php echo esc_attr( $menu_item['meta']['title'] ); ?>"<?php 129 132 endif; 130 133
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)