Make WordPress Core

Changeset 60639


Ignore:
Timestamp:
08/15/2025 10:59:58 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Quick/Bulk Edit: Check if post status is set in wp_ajax_inline_save().

This aims to avoid a PHP warning if the status value is missing in the request.

Follow-up to [8951], [9083].

Props bor0, jorbin, SergeyBiryukov.
Fixes #63622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r60492 r60639  
    21182118        $data['visibility']  = 'private';
    21192119        $data['post_status'] = 'private';
    2120     } else {
     2120    } elseif ( isset( $data['_status'] ) ) {
    21212121        $data['post_status'] = $data['_status'];
    21222122    }
Note: See TracChangeset for help on using the changeset viewer.