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
This commit is contained in:
parent
9c95e2bb81
commit
1da6be4868
@ -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
Block a user