Changeset 36481 for trunk/src/wp-includes/post.php
- Timestamp:
- 02/05/2016 06:57:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r36402 r36481 495 495 * 496 496 * @since 2.3.0 497 * @since 4.5.0 The `$post` parameter was made optional. 497 498 * 498 499 * @see sanitize_post_field() 499 500 * 500 501 * @param string $field Post field name. 501 * @param int|WP_Post $post Post ID or post object.502 * @param int|WP_Post $post Optional. Post ID or post object. Defaults to current post. 502 503 * @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db', 503 504 * or 'display'. Default 'display'. 504 505 * @return string The value of the post field on success, empty string on failure. 505 506 */ 506 function get_post_field( $field, $post , $context = 'display' ) {507 function get_post_field( $field, $post = null, $context = 'display' ) { 507 508 $post = get_post( $post ); 508 509
Note: See TracChangeset
for help on using the changeset viewer.