IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
795 | 795 | return ! $hasher->CheckPassword( $post->post_password, $hash ); |
796 | 796 | } |
797 | 797 | |
| 798 | /** |
| 799 | * Whether post status is private. |
| 800 | * |
| 801 | * @since |
| 802 | * |
| 803 | * @param int|WP_Post|null $post An optional post. Global $post used if not provided. |
| 804 | * @return bool true if the post status is 'private', false otherwise. |
| 805 | */ |
| 806 | function is_private( $post = null ) { |
| 807 | $post = get_post( $post ); |
| 808 | |
| 809 | if ( ( 'private' === $post->post_password ) ) |
| 810 | return true; |
| 811 | |
| 812 | return false; |
| 813 | } |
| 814 | |
798 | 815 | // |
799 | 816 | // Page Template Functions for usage in Themes |
800 | 817 | // |