Add missing annotations to
ajax-actions.php`
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
923bffda98
commit
d5e9f8770a
@ -338,7 +338,7 @@ function wp_ajax_logged_in() {
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param int $comment_id
|
||||
* @return die
|
||||
* @param int $delta
|
||||
*/
|
||||
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
|
||||
$total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0;
|
||||
@ -664,6 +664,11 @@ function wp_ajax_untrash_post( $action ) {
|
||||
wp_ajax_trash_post( $action );
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param string $action
|
||||
*/
|
||||
function wp_ajax_delete_page( $action ) {
|
||||
if ( empty( $action ) )
|
||||
$action = 'delete-page';
|
||||
@ -2823,6 +2828,7 @@ function wp_ajax_parse_embed() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @global WP_Post $post
|
||||
* @global WP_Scripts $wp_scripts
|
||||
@ -2893,7 +2899,6 @@ function wp_ajax_parse_media_shortcode() {
|
||||
* @since 4.1.0
|
||||
*/
|
||||
function wp_ajax_destroy_sessions() {
|
||||
|
||||
$user = get_userdata( (int) $_POST['user_id'] );
|
||||
if ( $user ) {
|
||||
if ( ! current_user_can( 'edit_user', $user->ID ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user