| @@ -1536,8 +1536,11 @@ | ||
| 1536 | 1536 | wp_send_json_error( $data, 400 ); |
| 1537 | 1537 | die(); |
| 1538 | 1538 | } |
| 1539 | 1539 | |
| 1540 | + /** | |
| 1541 | + * @var WP_Post|null $post | |
| 1542 | + */ | |
| 1540 | 1543 | $post = get_post( $style_id ); |
| 1541 | 1544 | |
| 1542 | 1545 | if ( ! $post || $post->post_type !== self::$post_type ) { |
| 1543 | 1546 | $data = array( |