Changeset 44941 for trunk/src/wp-includes/query.php
- Timestamp:
- 03/20/2019 03:48:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r43571 r44941 1112 1112 return false; 1113 1113 } 1114 1115 /** 1116 * Generates post data. 1117 * 1118 * @since 5.2.0 1119 * 1120 * @global WP_Query $wp_query Global WP_Query instance. 1121 * 1122 * @param WP_Post|object|int $post WP_Post instance or Post ID/object. 1123 * @return array|bool Elements of post, or false on failure. 1124 */ 1125 function generate_postdata( $post ) { 1126 global $wp_query; 1127 1128 if ( ! empty( $wp_query ) && $wp_query instanceof WP_Query ) { 1129 return $wp_query->generate_postdata( $post ); 1130 } 1131 1132 return false; 1133 }
Note: See TracChangeset
for help on using the changeset viewer.