IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
389 | 389 | if ( empty( $post ) && isset( $GLOBALS['post'] ) ) |
390 | 390 | $post = $GLOBALS['post']; |
391 | 391 | |
392 | | if ( is_a( $post, 'WP_Post' ) ) { |
| 392 | if ( is_a( $post, 'WP_Post' ) || ( isset( $post->is_custom ) && $post->is_custom ) ) { |
393 | 393 | $_post = $post; |
394 | 394 | } elseif ( is_object( $post ) ) { |
395 | 395 | if ( empty( $post->filter ) ) { |
… |
… |
|
599 | 599 | * @var string |
600 | 600 | */ |
601 | 601 | public $filter; |
| 602 | |
| 603 | /** |
| 604 | * Allows get_post() to bypass the is_a( $post, 'WP_Post' ) check |
| 605 | * |
| 606 | * Does not correspond to a DB field. |
| 607 | * |
| 608 | * @var bool |
| 609 | */ |
| 610 | public $is_custom = false; |
602 | 611 | |
603 | 612 | public static function get_instance( $post_id ) { |
604 | 613 | global $wpdb; |