Changeset 16438 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 11/17/2010 06:47:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r16309 r16438 14 14 15 15 /* Set the protocol used throughout this code */ 16 if ( is_ssl() ) 16 if ( is_ssl() ) 17 17 $this->proto = 'https://'; 18 18 … … 98 98 <div id="adminbarsearch-wrap"> 99 99 <form action="<?php echo home_url(); ?>" method="get" id="adminbarsearch"> 100 <input class="adminbar-input" name="s" id="adminbar-search" type="text" title="<?php esc_attr_e( 'Search' ); ?>" value="" maxlength="150" /> 100 <input class="adminbar-input" name="s" id="adminbar-search" type="text" title="<?php esc_attr_e( 'Search' ); ?>" value="" maxlength="150" /> 101 101 <button type="submit" class="adminbar-button"><span><?php _e('Search'); ?></span></button> 102 102 </form> … … 113 113 <?php $menuclass = ( ! empty( $menu_item['children'] ) ) ? 'menupop ' : ''; ?> 114 114 115 <li class="<?php echo $menuclass . "ab-$id" ?><?php 116 if ( ! empty( $menu_item['meta']['class'] ) ) : 115 <li class="<?php echo $menuclass . "ab-$id" ?><?php 116 if ( ! empty( $menu_item['meta']['class'] ) ) : 117 117 echo ' ' . $menu_item['meta']['class']; 118 endif; 118 endif; 119 119 ?>"> 120 <a href="<?php echo strip_tags( $menu_item['href'] ) ?>"<?php 120 <a href="<?php echo strip_tags( $menu_item['href'] ) ?>"<?php 121 121 if ( ! empty( $menu_item['meta']['onclick'] ) ) : 122 ?> onclick="<?php echo $menu_item['meta']['onclick']; ?>"<?php 122 ?> onclick="<?php echo $menu_item['meta']['onclick']; ?>"<?php 123 123 endif; 124 124 if ( ! empty( $menu_item['meta']['target'] ) ) : 125 ?> target="<?php echo $menu_item['meta']['target']; ?>"<?php 126 endif; 127 128 ?>><?php 129 130 if ( ! empty( $menuclass ) ) : 131 ?><span><?php 132 endif; 133 125 ?> target="<?php echo $menu_item['meta']['target']; ?>"<?php 126 endif; 127 128 ?>><?php 129 130 if ( ! empty( $menuclass ) ) : 131 ?><span><?php 132 endif; 133 134 134 echo $menu_item['title']; 135 136 if ( ! empty( $menuclass ) ) : 137 ?></span><?php 138 endif; 139 135 136 if ( ! empty( $menuclass ) ) : 137 ?></span><?php 138 endif; 139 140 140 ?></a> 141 141 … … 165 165 $this->add_node( $parent_id, $menu->{$id}['children'], $child ); 166 166 } 167 167 168 168 $child = null; 169 169 … … 205 205 function load_user_locale_translations() { 206 206 $this->need_to_change_locale = ( get_locale() != $this->user->locale ); 207 if ( ! $this->need_to_change_locale ) 207 if ( ! $this->need_to_change_locale ) 208 208 return; 209 209 /* … … 219 219 function unload_user_locale_translations() { 220 220 global $l10n; 221 if ( ! $this->changed_locale ) 221 if ( ! $this->changed_locale ) 222 222 return; 223 223 /*
Note: See TracChangeset
for help on using the changeset viewer.