Changeset 34502
- Timestamp:
- 09/24/2015 04:17:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r34366 r34502 489 489 * @global WP_Query $wp_query Global WP_Query instance. 490 490 * 491 * @param mixed $page Page ID, title, slug, or array of such.492 * @return bool 491 * @param int|string|array $page Optional. Page ID, title, slug, or array of such. Default empty. 492 * @return bool Whether the query is for an existing single page. 493 493 */ 494 494 function is_page( $page = '' ) { … … 598 598 * @global WP_Query $wp_query Global WP_Query instance. 599 599 * 600 * @param mixed $post Post ID, title, slug, or array of such.601 * @return bool 600 * @param int|string|array $post Optional. Post ID, title, slug, or array of such. Default empty. 601 * @return bool Whether the query is for an existing single post. 602 602 */ 603 603 function is_single( $post = '' ) { … … 625 625 * @global WP_Query $wp_query Global WP_Query instance. 626 626 * 627 * @param mixed $post_types Optional. Post Type or array of Post Types628 * @return bool 627 * @param string|array $post_types Optional. Post type or array of post types. Default empty. 628 * @return bool Whether the query is for an existing single post of any of the given post types. 629 629 */ 630 630 function is_singular( $post_types = '' ) { … … 4407 4407 * @since 3.1.0 4408 4408 * 4409 * @param mixed $page Page ID, title, slug, path, or array of such.4410 * @return bool 4409 * @param int|string|array $page Optional. Page ID, title, slug, path, or array of such. Default empty. 4410 * @return bool Whether the query is for an existing single page. 4411 4411 */ 4412 4412 public function is_page( $page = '' ) { … … 4500 4500 * @since 3.1.0 4501 4501 * 4502 * @param mixed $post Post ID, title, slug, path, or array of such.4503 * @return bool 4502 * @param int|string|array $post Optional. Post ID, title, slug, path, or array of such. Default empty. 4503 * @return bool Whether the query is for an existing single post. 4504 4504 */ 4505 4505 public function is_single( $post = '' ) { … … 4546 4546 * @since 3.1.0 4547 4547 * 4548 * @param mixed $post_types Optional. Post Type or array of Post Types4549 * @return bool 4548 * @param string|array $post_types Optional. Post type or array of post types. Default empty. 4549 * @return bool Whether the query is for an existing single post of any of the given post types. 4550 4550 */ 4551 4551 public function is_singular( $post_types = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.