Changeset 32524 for trunk/src/wp-includes/post.php
- Timestamp:
- 05/21/2015 07:48:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r32523 r32524 5327 5327 * 5328 5328 * @since 2.2.0 5329 * 5330 * @param string|array $post_type Array or comma-separated string of post types.5331 * 5329 * @since 4.3.0 Added the ability to pass an array to `$post_type`. 5330 * 5331 * @param string|array $post_type Single post type or an array of post types. Currently only supports 'post' or 'page'. 5332 5332 * @return string SQL code that can be added to a where clause. 5333 5333 */ … … 5340 5340 * 5341 5341 * @since 3.0.0 5342 * @since 4.3.0 Introduced the ability to pass multiplepost types to `$post_type`.5342 * @since 4.3.0 Introduced the ability to pass an array of post types to `$post_type`. 5343 5343 * 5344 5344 * @see get_private_posts_cap_sql() 5345 5345 * 5346 * @param array|string $post_type Array or comma-separated list of post type(s).5346 * @param array|string $post_type Single post type or an array of post types. 5347 5347 * @param bool $full Optional. Returns a full WHERE statement instead of just 5348 5348 * an 'andalso' term. Default true. … … 5358 5358 $post_types = $post_type; 5359 5359 } else { 5360 $post_types = preg_split( '/[\s,]+/',$post_type );5360 $post_types = array( $post_type ); 5361 5361 } 5362 5362
Note: See TracChangeset
for help on using the changeset viewer.