Ticket #18302: 18302.2.patch
File 18302.2.patch, 3.0 KB (added by , 13 years ago) |
---|
-
admin-bar.php
101 101 function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) { 102 102 $user_id = get_current_user_id(); 103 103 104 if ( 0 != $user_id) {104 if ( !is_network_admin() and ( 0 != $user_id ) ) { 105 105 if ( is_admin() ) 106 106 $wp_admin_bar->add_menu( array( 'id' => 'view-site', 'title' => __( 'Visit Site' ), 'href' => home_url() ) ); 107 107 elseif ( is_multisite() ) -
class-wp-admin-bar.php
98 98 </ul> 99 99 </div> 100 100 101 <div id="adminbarsearch-wrap"> 102 <form action="<?php echo home_url(); ?>" method="get" id="adminbarsearch"> 103 <input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /> 104 <input type="submit" class="adminbar-button" value="<?php _e('Search'); ?>"/> 105 </form> 106 </div> 101 <?php if ( !is_network_admin() ) { ?> 102 <div id="adminbarsearch-wrap"> 103 <form action="<?php echo home_url(); ?>" method="get" id="adminbarsearch"> 104 <input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /> 105 <input type="submit" class="adminbar-button" value="<?php _e('Search'); ?>"/> 106 </form> 107 </div> 108 <?php } ?> 107 109 </div> 108 110 109 111 <?php -
theme.php
1060 1060 } 1061 1061 1062 1062 /** 1063 * Retrieve the name ofthe highest priority template file that exists.1063 * Retrieve the full file path to the highest priority template file that exists. 1064 1064 * 1065 1065 * Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which 1066 1066 * inherit from a parent theme can just overload one file. … … 1093 1093 } 1094 1094 1095 1095 /** 1096 * Retrieve the URI of the highest priority template file that exists. 1097 * 1098 * Searches in the stylesheet directory before the template directory so themes 1099 * which inherit from a parent theme can just overload one file. 1100 * 1101 * @since 3.3 1102 * 1103 * @param string|array $template_names Template file(s) to search for, in order. 1104 * @return string The URI of the file if one is located. 1105 */ 1106 function locate_template_uri( $template_names ) { 1107 $located = ''; 1108 foreach ( (array) $template_names as $template_name ) { 1109 if ( !$template_name ) 1110 continue; 1111 if ( file_exists(get_stylesheet_directory() . '/' . $template_name)) { 1112 $located = get_stylesheet_directory_uri() . '/' . $template_name; 1113 break; 1114 } else if ( file_exists(get_template_directory() . '/' . $template_name) ) { 1115 $located = get_template_directory_uri() . '/' . $template_name; 1116 break; 1117 } 1118 } 1119 1120 return $located; 1121 } 1122 1123 /** 1096 1124 * Require the template file with WordPress environment. 1097 1125 * 1098 1126 * The globals are set up for the template file to ensure that the WordPress