Index: wp-includes/post.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/post.php	(revision e5ea82d81af2a6b5592fdd79974cad507f85c535)
+++ wp-includes/post.php	(revision )
@@ -506,16 +506,15 @@
  * @param int|WP_Post $post    Optional. Post ID or post object. Defaults to current post.
  * @param string      $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db',
  *                             or 'display'. Default 'display'.
+ * @param string      $default Optional. Default value return. Default empty string.
  * @return string The value of the post field on success, empty string on failure.
  */
-function get_post_field( $field, $post = null, $context = 'display' ) {
+function get_post_field( $field, $post = null, $context = 'display', $default = '' ) {
 	$post = get_post( $post );
 
-	if ( !$post )
-		return '';
-
-	if ( !isset($post->$field) )
-		return '';
+	if ( !$post || !isset($post->$field)){
+		return $default;
+	}
 
 	return sanitize_post_field($field, $post->$field, $post->ID, $context);
 }
