Skip to content

Commit 23764da

Browse files
Fix disable additional assets AJAX callback
1 parent 05e87d4 commit 23764da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/assets/class-rest-assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ public function rest_handle_state( $request ) {
258258
$state = $request['state'];
259259
foreach ( $ids as $id ) {
260260
$where = array(
261-
'post_id' => $id,
262-
'post_state' => 'asset',
261+
'post_id' => $id,
262+
'sync_type' => 'asset',
263263
);
264264
if ( 'delete' === $state ) {
265265
$data = array(

0 commit comments

Comments
 (0)