Make WordPress Core

Changeset 30662


Ignore:
Timestamp:
11/30/2014 09:22:07 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve the @param docs for trackback_response() and validate_another_blog_signup().

See #30224.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-signup.php

    r30546 r30662  
    300300 * @since MU
    301301 *
    302  * @return bool True if blog signup was validated, false if error
     302 * @return null|boolean True if blog signup was validated, false if error.
     303 *                      The function halts all execution if the user is not logged in.
    303304 */
    304305function validate_another_blog_signup() {
    305306    global $wpdb, $blogname, $blog_title, $errors, $domain, $path;
    306307    $current_user = wp_get_current_user();
    307     if ( !is_user_logged_in() )
     308    if ( ! is_user_logged_in() ) {
    308309        die();
     310    }
    309311
    310312    $result = validate_blog_form();
  • trunk/src/wp-trackback.php

    r25616 r30662  
    2121 * @since 0.71
    2222 *
    23  * @param int|bool $error         Whether there was an error.
    24  *                                Default '0'. Accepts '0' or '1'.
    25  * @param string   $error_message Error message if an error occurred.
     23 * @param mixed $error         Whether there was an error.
     24 *                              Default '0'. Accepts '0' or '1', true or false.
     25 * @param string $error_message Error message if an error occurred.
    2626 */
    2727function trackback_response($error = 0, $error_message = '') {
Note: See TracChangeset for help on using the changeset viewer.