Changeset 42710 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/13/2018 04:53:44 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/query.php (modified) (29 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r42588 r42710 137 137 138 138 /** 139 * Is the query for an existing archive page?139 * Determines whether the query is for an existing archive page. 140 140 * 141 141 * Month, Year, Category, Author, Post Type archive... 142 * 142 * 143 * For more information on this and similar theme functions, check out 144 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 145 * Conditional Tags} article in the Theme Developer Handbook. 146 * 143 147 * @since 1.5.0 144 148 * … … 159 163 160 164 /** 161 * Is the query for an existing post type archive page? 162 * 165 * Determines whether the query is for an existing post type archive page. 166 * 167 * For more information on this and similar theme functions, check out 168 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 169 * Conditional Tags} article in the Theme Developer Handbook. 170 * 163 171 * @since 3.1.0 164 172 * … … 180 188 181 189 /** 182 * Is the query for an existing attachment page? 183 * 190 * Determines whether the query is for an existing attachment page. 191 * 192 * For more information on this and similar theme functions, check out 193 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 194 * Conditional Tags} article in the Theme Developer Handbook. 195 * 184 196 * @since 2.0.0 185 197 * … … 201 213 202 214 /** 203 * Is the query for an existing author archive page?215 * Determines whether the query is for an existing author archive page. 204 216 * 205 217 * If the $author parameter is specified, this function will additionally 206 218 * check if the query is for one of the authors specified. 207 * 219 * 220 * For more information on this and similar theme functions, check out 221 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 222 * Conditional Tags} article in the Theme Developer Handbook. 223 * 208 224 * @since 1.5.0 209 225 * … … 225 241 226 242 /** 227 * Is the query for an existing category archive page?243 * Determines whether the query is for an existing category archive page. 228 244 * 229 245 * If the $category parameter is specified, this function will additionally 230 246 * check if the query is for one of the categories specified. 231 * 247 * 248 * For more information on this and similar theme functions, check out 249 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 250 * Conditional Tags} article in the Theme Developer Handbook. 251 * 232 252 * @since 1.5.0 233 253 * … … 249 269 250 270 /** 251 * Is the query for an existing tag archive page?271 * Determines whether the query is for an existing tag archive page. 252 272 * 253 273 * If the $tag parameter is specified, this function will additionally 254 274 * check if the query is for one of the tags specified. 275 * 276 * For more information on this and similar theme functions, check out 277 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 278 * Conditional Tags} article in the Theme Developer Handbook. 255 279 * 256 280 * @since 2.3.0 … … 273 297 274 298 /** 275 * Is the query for an existing custom taxonomy archive page?299 * Determines whether the query is for an existing custom taxonomy archive page. 276 300 * 277 301 * If the $taxonomy parameter is specified, this function will additionally … … 281 305 * this function will additionally check if the query is for one of the terms 282 306 * specified. 307 * 308 * For more information on this and similar theme functions, check out 309 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 310 * Conditional Tags} article in the Theme Developer Handbook. 283 311 * 284 312 * @since 2.5.0 … … 302 330 303 331 /** 304 * Is the query for an existing date archive? 305 * 332 * Determines whether the query is for an existing date archive. 333 * 334 * For more information on this and similar theme functions, check out 335 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 336 * Conditional Tags} article in the Theme Developer Handbook. 337 * 306 338 * @since 1.5.0 307 339 * … … 322 354 323 355 /** 324 * Is the query for an existing day archive?356 * Determines whether the query is for an existing day archive. 325 357 * 326 358 * A conditional check to test whether the page is a date-based archive page displaying posts for the current day. 327 * 359 * 360 * For more information on this and similar theme functions, check out 361 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 362 * Conditional Tags} article in the Theme Developer Handbook. 363 * 328 364 * @since 1.5.0 329 365 * … … 344 380 345 381 /** 346 * Is the query for a feed? 347 * 382 * Determines whether the query is for a feed. 383 * 384 * For more information on this and similar theme functions, check out 385 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 386 * Conditional Tags} article in the Theme Developer Handbook. 387 * 348 388 * @since 1.5.0 349 389 * … … 385 425 386 426 /** 387 * Is the query for the front page of the site?427 * Determines whether the query is for the front page of the site. 388 428 * 389 429 * This is for what is displayed at your site's main URL. … … 395 435 * 396 436 * Otherwise the same as @see is_home() 397 * 437 * 438 * For more information on this and similar theme functions, check out 439 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 440 * Conditional Tags} article in the Theme Developer Handbook. 441 * 398 442 * @since 2.5.0 399 443 * … … 414 458 415 459 /** 416 * Determines ifthe query is for the blog homepage.460 * Determines whether the query is for the blog homepage. 417 461 * 418 462 * The blog homepage is the page that shows the time-based blog content of the site. … … 423 467 * If a static page is set for the front page of the site, this function will return true only 424 468 * on the page you set as the "Posts page". 425 * 469 * 470 * For more information on this and similar theme functions, check out 471 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 472 * Conditional Tags} article in the Theme Developer Handbook. 473 * 426 474 * @since 1.5.0 427 475 * … … 443 491 444 492 /** 445 * Is the query for an existing month archive? 446 * 493 * Determines whether the query is for an existing month archive. 494 * 495 * For more information on this and similar theme functions, check out 496 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 497 * Conditional Tags} article in the Theme Developer Handbook. 498 * 447 499 * @since 1.5.0 448 500 * … … 463 515 464 516 /** 465 * Is the query for an existing single page?517 * Determines whether the query is for an existing single page. 466 518 * 467 519 * If the $page parameter is specified, this function will additionally 468 520 * check if the query is for one of the pages specified. 469 * 521 * 522 * For more information on this and similar theme functions, check out 523 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 524 * Conditional Tags} article in the Theme Developer Handbook. 525 * 470 526 * @see is_single() 471 527 * @see is_singular() … … 490 546 491 547 /** 492 * Is the query for paged result and not for the first page? 493 * 548 * Determines whether the query is for paged results and not for the first page. 549 * 550 * For more information on this and similar theme functions, check out 551 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 552 * Conditional Tags} article in the Theme Developer Handbook. 553 * 494 554 * @since 1.5.0 495 555 * … … 510 570 511 571 /** 512 * Is the query for a post or page preview? 513 * 572 * Determines whether the query is for a post or page preview. 573 * 574 * For more information on this and similar theme functions, check out 575 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 576 * Conditional Tags} article in the Theme Developer Handbook. 577 * 514 578 * @since 2.0.0 515 579 * … … 550 614 551 615 /** 552 * Is the query for a search? 553 * 616 * Determines whether the query is for a search. 617 * 618 * For more information on this and similar theme functions, check out 619 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 620 * Conditional Tags} article in the Theme Developer Handbook. 621 * 554 622 * @since 1.5.0 555 623 * … … 570 638 571 639 /** 572 * Is the query for an existing single post?640 * Determines whether the query is for an existing single post. 573 641 * 574 642 * Works for any post type, except attachments and pages … … 576 644 * If the $post parameter is specified, this function will additionally 577 645 * check if the query is for one of the Posts specified. 578 * 646 * 647 * For more information on this and similar theme functions, check out 648 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 649 * Conditional Tags} article in the Theme Developer Handbook. 650 * 579 651 * @see is_page() 580 652 * @see is_singular() … … 599 671 600 672 /** 601 * Is the query for an existing single post of any post type (post, attachment, page,602 * custom post types)?673 * Determines whether the query is for an existing single post of any post type 674 * (post, attachment, page, custom post types). 603 675 * 604 676 * If the $post_types parameter is specified, this function will additionally 605 677 * check if the query is for one of the Posts Types specified. 606 * 678 * 679 * For more information on this and similar theme functions, check out 680 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 681 * Conditional Tags} article in the Theme Developer Handbook. 682 * 607 683 * @see is_page() 608 684 * @see is_single() … … 627 703 628 704 /** 629 * Is the query for a specific time? 705 * Determines whether the query is for a specific time. 706 * 707 * For more information on this and similar theme functions, check out 708 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 709 * Conditional Tags} article in the Theme Developer Handbook. 630 710 * 631 711 * @since 1.5.0 … … 647 727 648 728 /** 649 * Is the query for a trackback endpoint call? 729 * Determines whether the query is for a trackback endpoint call. 730 * 731 * For more information on this and similar theme functions, check out 732 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 733 * Conditional Tags} article in the Theme Developer Handbook. 650 734 * 651 735 * @since 1.5.0 … … 667 751 668 752 /** 669 * Is the query for an existing year archive? 753 * Determines whether the query is for an existing year archive. 754 * 755 * For more information on this and similar theme functions, check out 756 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 757 * Conditional Tags} article in the Theme Developer Handbook. 670 758 * 671 759 * @since 1.5.0 … … 687 775 688 776 /** 689 * Is the query a 404 (returns no results)? 690 * 777 * Determines whether the query has resulted in a 404 (returns no results). 778 * 779 * For more information on this and similar theme functions, check out 780 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 781 * Conditional Tags} article in the Theme Developer Handbook. 782 * 691 783 * @since 1.5.0 692 784 * … … 727 819 728 820 /** 729 * Is the query the main query? 730 * 821 * Determines whether the query is the main query. 822 * 823 * For more information on this and similar theme functions, check out 824 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 825 * Conditional Tags} article in the Theme Developer Handbook. 826 * 731 827 * @since 3.3.0 732 828 * … … 771 867 772 868 /** 773 * Whether the caller is in the Loop. 869 * Determines whether the caller is in the Loop. 870 * 871 * For more information on this and similar theme functions, check out 872 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 873 * Conditional Tags} article in the Theme Developer Handbook. 774 874 * 775 875 * @since 2.0.0
Note: See TracChangeset
for help on using the changeset viewer.