IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
497 | 497 | * |
498 | 498 | * @see sanitize_post_field() |
499 | 499 | * |
500 | | * @param string $field Post field name. |
501 | | * @param int|WP_Post $post Post ID or post object. |
502 | | * @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db', |
| 500 | * @param string $field Post field name. |
| 501 | * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. |
| 502 | * @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db', |
503 | 503 | * or 'display'. Default 'display'. |
504 | 504 | * @return string The value of the post field on success, empty string on failure. |
505 | 505 | */ |
506 | | function get_post_field( $field, $post, $context = 'display' ) { |
| 506 | function get_post_field( $field, $post = null, $context = 'display' ) { |
507 | 507 | $post = get_post( $post ); |
508 | 508 | |
509 | 509 | if ( !$post ) |