From 1da6be4868a638c0693b5c4e38fd608849723776 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 30 Nov 2014 21:22:07 +0000 Subject: [PATCH] Improve the `@param` docs for `trackback_response()` and `validate_another_blog_signup()`. See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30662 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-signup.php | 6 ++++-- src/wp-trackback.php | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wp-signup.php b/src/wp-signup.php index c19110ee01..a519bcc0d6 100644 --- a/src/wp-signup.php +++ b/src/wp-signup.php @@ -299,13 +299,15 @@ function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) { * * @since MU * - * @return bool True if blog signup was validated, false if error + * @return null|boolean True if blog signup was validated, false if error. + * The function halts all execution if the user is not logged in. */ function validate_another_blog_signup() { global $wpdb, $blogname, $blog_title, $errors, $domain, $path; $current_user = wp_get_current_user(); - if ( !is_user_logged_in() ) + if ( ! is_user_logged_in() ) { die(); + } $result = validate_blog_form(); diff --git a/src/wp-trackback.php b/src/wp-trackback.php index a93bab7c0e..3d211043eb 100644 --- a/src/wp-trackback.php +++ b/src/wp-trackback.php @@ -20,9 +20,9 @@ if (empty($wp)) { * * @since 0.71 * - * @param int|bool $error Whether there was an error. - * Default '0'. Accepts '0' or '1'. - * @param string $error_message Error message if an error occurred. + * @param mixed $error Whether there was an error. + * Default '0'. Accepts '0' or '1', true or false. + * @param string $error_message Error message if an error occurred. */ function trackback_response($error = 0, $error_message = '') { header('Content-Type: text/xml; charset=' . get_option('blog_charset') );