Skip to content

Commit

Permalink
Improve the @param docs for trackback_response() and `validate_an…
Browse files Browse the repository at this point in the history
…other_blog_signup()`.

See #30224.

Built from https://develop.svn.wordpress.org/trunk@30662


git-svn-id: http://core.svn.wordpress.org/trunk@30652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
staylor committed Nov 30, 2014
1 parent 562ddb8 commit 616c551
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-beta2-30661';
$wp_version = '4.1-beta2-30662';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down
6 changes: 4 additions & 2 deletions wp-signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions wp-trackback.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
*
* @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') );
Expand Down

0 comments on commit 616c551

Please sign in to comment.