Add missing` annotations to `ajax-actions.php`
See #32444. Built from https://develop.svn.wordpress.org/trunk@32652 git-svn-id: http://core.svn.wordpress.org/trunk@32622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5646cd9e5
commit
9a29d8ac7b
|
@ -338,7 +338,7 @@ function wp_ajax_logged_in() {
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param int $comment_id
|
* @param int $comment_id
|
||||||
* @return die
|
* @param int $delta
|
||||||
*/
|
*/
|
||||||
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
|
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
|
||||||
$total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0;
|
$total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0;
|
||||||
|
@ -664,6 +664,11 @@ function wp_ajax_untrash_post( $action ) {
|
||||||
wp_ajax_trash_post( $action );
|
wp_ajax_trash_post( $action );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 3.1.0
|
||||||
|
*
|
||||||
|
* @param string $action
|
||||||
|
*/
|
||||||
function wp_ajax_delete_page( $action ) {
|
function wp_ajax_delete_page( $action ) {
|
||||||
if ( empty( $action ) )
|
if ( empty( $action ) )
|
||||||
$action = 'delete-page';
|
$action = 'delete-page';
|
||||||
|
@ -812,12 +817,12 @@ function wp_ajax_add_tag() {
|
||||||
$x->add( array(
|
$x->add( array(
|
||||||
'what' => 'taxonomy',
|
'what' => 'taxonomy',
|
||||||
'supplemental' => compact('parents', 'noparents')
|
'supplemental' => compact('parents', 'noparents')
|
||||||
) );
|
) );
|
||||||
$x->add( array(
|
$x->add( array(
|
||||||
'what' => 'term',
|
'what' => 'term',
|
||||||
'position' => $level,
|
'position' => $level,
|
||||||
'supplemental' => (array) $tag
|
'supplemental' => (array) $tag
|
||||||
) );
|
) );
|
||||||
$x->send();
|
$x->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2823,6 +2828,7 @@ function wp_ajax_parse_embed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @since 4.0.0
|
||||||
*
|
*
|
||||||
* @global WP_Post $post
|
* @global WP_Post $post
|
||||||
* @global WP_Scripts $wp_scripts
|
* @global WP_Scripts $wp_scripts
|
||||||
|
@ -2893,7 +2899,6 @@ function wp_ajax_parse_media_shortcode() {
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
*/
|
*/
|
||||||
function wp_ajax_destroy_sessions() {
|
function wp_ajax_destroy_sessions() {
|
||||||
|
|
||||||
$user = get_userdata( (int) $_POST['user_id'] );
|
$user = get_userdata( (int) $_POST['user_id'] );
|
||||||
if ( $user ) {
|
if ( $user ) {
|
||||||
if ( ! current_user_can( 'edit_user', $user->ID ) ) {
|
if ( ! current_user_can( 'edit_user', $user->ID ) ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32651';
|
$wp_version = '4.3-alpha-32652';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue