Ticket #21893: 21893.3.patch
| File 21893.3.patch, 3.7 KB (added by , 13 years ago) |
|---|
-
wp-includes/general-template.php
147 147 * 148 148 * @since 2.7.0 149 149 * @param boolean $echo Default to echo and not return the form. 150 * @return string|null String when retrieving, null when displaying or if searchform.php exists. 150 151 */ 151 152 function get_search_form($echo = true) { 152 153 do_action( 'get_search_form' ); … … 181 182 * 182 183 * @param string $redirect Optional path to redirect to on login/logout. 183 184 * @param boolean $echo Default to echo and not return the link. 185 * @return string|null String when retrieving, null when displaying. 184 186 */ 185 187 function wp_loginout($redirect = '', $echo = true) { 186 188 if ( ! is_user_logged_in() ) … … 205 207 * @uses apply_filters() calls 'logout_url' hook on final logout url 206 208 * 207 209 * @param string $redirect Path to redirect to on logout. 210 * @return string A log out URL. 208 211 */ 209 212 function wp_logout_url($redirect = '') { 210 213 $args = array( 'action' => 'logout' ); … … 229 232 * 230 233 * @param string $redirect Path to redirect to on login. 231 234 * @param bool $force_reauth Whether to force reauthorization, even if a cookie is present. Default is false. 232 * @return string A log in url235 * @return string A log in URL. 233 236 */ 234 237 function wp_login_url($redirect = '', $force_reauth = false) { 235 238 $login_url = site_url('wp-login.php', 'login'); … … 248 251 * the HTML immediately. Pass array('echo'=>false) to return the string instead. 249 252 * 250 253 * @since 3.0.0 251 * @param array $args Configuration options to modify the form output 252 * @return Void, or string containing the form254 * @param array $args Configuration options to modify the form output. 255 * @return string|null String when retrieving, null when displaying. 253 256 */ 254 257 function wp_login_form( $args = array() ) { 255 258 $defaults = array( 'echo' => true, … … 305 308 * @uses apply_filters() calls 'lostpassword_url' hook on the lostpassword url 306 309 * 307 310 * @param string $redirect Path to redirect to on login. 311 * @return string Lost password URL. 308 312 */ 309 313 function wp_lostpassword_url( $redirect = '' ) { 310 314 $args = array( 'action' => 'lostpassword' ); … … 328 332 * @param string $before Text to output before the link (defaults to <li>). 329 333 * @param string $after Text to output after the link (defaults to </li>). 330 334 * @param boolean $echo Default to echo and not return the link. 335 * @return string|null String when retrieving, null when displaying. 331 336 */ 332 337 function wp_register( $before = '<li>', $after = '</li>', $echo = true ) { 333 338 … … 861 866 * @since 1.2.0 862 867 * 863 868 * @param string|array $args Optional. Override defaults. 869 * @return string|null String when retrieving, null when displaying. 864 870 */ 865 871 function wp_get_archives($args = '') { 866 872 global $wpdb, $wp_locale; … … 1062 1068 * 1063 1069 * @param bool $initial Optional, default is true. Use initial calendar names. 1064 1070 * @param bool $echo Optional, default is true. Set to false for return. 1071 * @return string|null String when retrieving, null when displaying. 1065 1072 */ 1066 1073 function get_calendar($initial = true, $echo = true) { 1067 1074 global $wpdb, $m, $monthnum, $year, $wp_locale, $posts; … … 2255 2262 * @since 2.8.0 2256 2263 * @access private 2257 2264 * 2258 * @param any$helper One of the values to compare2259 * @param any$current (true) The other value to compare if not just true2265 * @param mixed $helper One of the values to compare 2266 * @param mixed $current (true) The other value to compare if not just true 2260 2267 * @param bool $echo Whether to echo or just return the string 2261 2268 * @param string $type The type of checked|selected|disabled we are doing 2262 2269 * @return string html attribute or empty string