WordPress.org

Make WordPress Core

Ticket #21893: 21893.3.patch

File 21893.3.patch, 3.7 KB (added by SergeyBiryukov, 6 years ago)
  • wp-includes/general-template.php

     
    147147 *
    148148 * @since 2.7.0
    149149 * @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.
    150151 */
    151152function get_search_form($echo = true) {
    152153        do_action( 'get_search_form' );
     
    181182 *
    182183 * @param string $redirect Optional path to redirect to on login/logout.
    183184 * @param boolean $echo Default to echo and not return the link.
     185 * @return string|null String when retrieving, null when displaying.
    184186 */
    185187function wp_loginout($redirect = '', $echo = true) {
    186188        if ( ! is_user_logged_in() )
     
    205207 * @uses apply_filters() calls 'logout_url' hook on final logout url
    206208 *
    207209 * @param string $redirect Path to redirect to on logout.
     210 * @return string A log out URL.
    208211 */
    209212function wp_logout_url($redirect = '') {
    210213        $args = array( 'action' => 'logout' );
     
    229232 *
    230233 * @param string $redirect Path to redirect to on login.
    231234 * @param bool $force_reauth Whether to force reauthorization, even if a cookie is present. Default is false.
    232  * @return string A log in url
     235 * @return string A log in URL.
    233236 */
    234237function wp_login_url($redirect = '', $force_reauth = false) {
    235238        $login_url = site_url('wp-login.php', 'login');
     
    248251 * the HTML immediately. Pass array('echo'=>false) to return the string instead.
    249252 *
    250253 * @since 3.0.0
    251  * @param array $args Configuration options to modify the form output
    252  * @return Void, or string containing the form
     254 * @param array $args Configuration options to modify the form output.
     255 * @return string|null String when retrieving, null when displaying.
    253256 */
    254257function wp_login_form( $args = array() ) {
    255258        $defaults = array( 'echo' => true,
     
    305308 * @uses apply_filters() calls 'lostpassword_url' hook on the lostpassword url
    306309 *
    307310 * @param string $redirect Path to redirect to on login.
     311 * @return string Lost password URL.
    308312 */
    309313function wp_lostpassword_url( $redirect = '' ) {
    310314        $args = array( 'action' => 'lostpassword' );
     
    328332 * @param string $before Text to output before the link (defaults to <li>).
    329333 * @param string $after Text to output after the link (defaults to </li>).
    330334 * @param boolean $echo Default to echo and not return the link.
     335 * @return string|null String when retrieving, null when displaying.
    331336 */
    332337function wp_register( $before = '<li>', $after = '</li>', $echo = true ) {
    333338
     
    861866 * @since 1.2.0
    862867 *
    863868 * @param string|array $args Optional. Override defaults.
     869 * @return string|null String when retrieving, null when displaying.
    864870 */
    865871function wp_get_archives($args = '') {
    866872        global $wpdb, $wp_locale;
     
    10621068 *
    10631069 * @param bool $initial Optional, default is true. Use initial calendar names.
    10641070 * @param bool $echo Optional, default is true. Set to false for return.
     1071 * @return string|null String when retrieving, null when displaying.
    10651072 */
    10661073function get_calendar($initial = true, $echo = true) {
    10671074        global $wpdb, $m, $monthnum, $year, $wp_locale, $posts;
     
    22552262 * @since 2.8.0
    22562263 * @access private
    22572264 *
    2258  * @param any $helper One of the values to compare
    2259  * @param any $current (true) The other value to compare if not just true
     2265 * @param mixed $helper One of the values to compare
     2266 * @param mixed $current (true) The other value to compare if not just true
    22602267 * @param bool $echo Whether to echo or just return the string
    22612268 * @param string $type The type of checked|selected|disabled we are doing
    22622269 * @return string html attribute or empty string