Changeset 10150 for trunk/wp-includes/general-template.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r10100 r10150 112 112 <label class="hidden" for="s">' . __('Search for:') . '</label> 113 113 <div><input type="text" value="' . attribute_escape(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" /> 114 <input type="submit" id="searchsubmit" value="'.attribute_escape(__('Search')).'" /> 114 <input type="submit" id="searchsubmit" value="'.attribute_escape(__('Search')).'" /> 115 115 </div> 116 116 </form>'; … … 145 145 * @uses wp_nonce_url() To protect against CSRF 146 146 * @uses site_url() To generate the log in URL 147 * 147 * 148 148 * @param string $redirect Path to redirect to on logout. 149 149 */ … … 151 151 if ( strlen($redirect) ) 152 152 $redirect = "&redirect_to=$redirect"; 153 153 154 154 return wp_nonce_url( site_url("wp-login.php?action=logout$redirect", 'login'), 'log-out' ); 155 155 } … … 162 162 * @since 2.7 163 163 * @uses site_url() To generate the log in URL 164 * 164 * 165 165 * @param string $redirect Path to redirect to on login. 166 166 */ … … 168 168 if ( strlen($redirect) ) 169 169 $redirect = "?redirect_to=$redirect"; 170 170 171 171 return site_url("wp-login.php$redirect", 'login'); 172 172 } … … 177 177 * Display a link which allows the user to navigate to the registration page if 178 178 * not logged in and registration is enabled or to the dashboard if logged in. 179 * 179 * 180 180 * @since 1.5.0 181 181 * @uses apply_filters() Calls 'register' hook on register / admin link content. … … 449 449 450 450 if ( is_404() ) { 451 $title = __('Page not found'); 452 } 453 451 $title = __('Page not found'); 452 } 453 454 454 $prefix = ''; 455 455 if ( !empty($title) ) … … 873 873 echo $output; 874 874 else 875 return $output; 875 return $output; 876 876 } 877 877 … … 1094 1094 /** 1095 1095 * Purge the cached results of get_calendar. 1096 * 1096 * 1097 1097 * @see get_calendar 1098 1098 * @since 2.1.0 … … 1489 1489 $richedit = user_can_richedit(); 1490 1490 $rows = "rows='$rows'"; 1491 1491 1492 1492 if ( $richedit || $media_buttons ) { ?> 1493 1493 <div id="editor-toolbar"> … … 1564 1564 /** 1565 1565 * Display the contents of the search query variable. 1566 * 1566 * 1567 1567 * The search query string is passed through {@link attribute_escape()} 1568 1568 * to ensure that it is safe for placing in an html attribute. … … 1823 1823 1824 1824 /** 1825 * Enqueues the default ThickBox js and css. 1826 * 1825 * Enqueues the default ThickBox js and css. 1826 * 1827 1827 * If any of the settings need to be changed, this can be done with another js 1828 1828 * file similar to media-upload.js and theme-preview.js. That file should
Note: See TracChangeset
for help on using the changeset viewer.