Improve the `@param` docs for `trackback_response()` and `validate_another_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
This commit is contained in:
parent
562ddb8316
commit
616c5515ce
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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') );
|
||||
|
|
Loading…
Reference in New Issue