Changeset 43827 for branches/5.0/src/wp-includes/query.php
- Timestamp:
- 10/26/2018 01:23:29 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/query.php
r43026 r43827 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. 357 * 358 * For more information on this and similar theme functions, check out 359 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 360 * Conditional Tags} article in the Theme Developer Handbook. 325 361 * 326 362 * @since 1.5.0 … … 342 378 343 379 /** 344 * Is the query for a feed? 345 * 380 * Determines whether the query is for a feed. 381 * 382 * For more information on this and similar theme functions, check out 383 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 384 * Conditional Tags} article in the Theme Developer Handbook. 385 * 346 386 * @since 1.5.0 347 387 * … … 383 423 384 424 /** 385 * Is the query for the front page of the site?425 * Determines whether the query is for the front page of the site. 386 426 * 387 427 * This is for what is displayed at your site's main URL. … … 393 433 * 394 434 * Otherwise the same as @see is_home() 395 * 435 * 436 * For more information on this and similar theme functions, check out 437 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 438 * Conditional Tags} article in the Theme Developer Handbook. 439 * 396 440 * @since 2.5.0 397 441 * … … 412 456 413 457 /** 414 * Determines ifthe query is for the blog homepage.458 * Determines whether the query is for the blog homepage. 415 459 * 416 460 * The blog homepage is the page that shows the time-based blog content of the site. … … 421 465 * If a static page is set for the front page of the site, this function will return true only 422 466 * on the page you set as the "Posts page". 423 * 467 * 468 * For more information on this and similar theme functions, check out 469 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 470 * Conditional Tags} article in the Theme Developer Handbook. 471 * 424 472 * @since 1.5.0 425 473 * … … 441 489 442 490 /** 443 * Is the query for an existing month archive? 444 * 491 * Determines whether the query is for an existing month archive. 492 * 493 * For more information on this and similar theme functions, check out 494 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 495 * Conditional Tags} article in the Theme Developer Handbook. 496 * 445 497 * @since 1.5.0 446 498 * … … 461 513 462 514 /** 463 * Is the query for an existing single page?515 * Determines whether the query is for an existing single page. 464 516 * 465 517 * If the $page parameter is specified, this function will additionally 466 518 * check if the query is for one of the pages specified. 467 * 519 * 520 * For more information on this and similar theme functions, check out 521 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 522 * Conditional Tags} article in the Theme Developer Handbook. 523 * 468 524 * @see is_single() 469 525 * @see is_singular() … … 488 544 489 545 /** 490 * Is the query for paged result and not for the first page? 491 * 546 * Determines whether the query is for paged results and not for the first page. 547 * 548 * For more information on this and similar theme functions, check out 549 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 550 * Conditional Tags} article in the Theme Developer Handbook. 551 * 492 552 * @since 1.5.0 493 553 * … … 508 568 509 569 /** 510 * Is the query for a post or page preview? 511 * 570 * Determines whether the query is for a post or page preview. 571 * 572 * For more information on this and similar theme functions, check out 573 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 574 * Conditional Tags} article in the Theme Developer Handbook. 575 * 512 576 * @since 2.0.0 513 577 * … … 548 612 549 613 /** 550 * Is the query for a search? 551 * 614 * Determines whether the query is for a search. 615 * 616 * For more information on this and similar theme functions, check out 617 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 618 * Conditional Tags} article in the Theme Developer Handbook. 619 * 552 620 * @since 1.5.0 553 621 * … … 568 636 569 637 /** 570 * Is the query for an existing single post?638 * Determines whether the query is for an existing single post. 571 639 * 572 640 * Works for any post type, except attachments and pages … … 574 642 * If the $post parameter is specified, this function will additionally 575 643 * check if the query is for one of the Posts specified. 576 * 644 * 645 * For more information on this and similar theme functions, check out 646 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 647 * Conditional Tags} article in the Theme Developer Handbook. 648 * 577 649 * @see is_page() 578 650 * @see is_singular() … … 597 669 598 670 /** 599 * Is the query for an existing single post of any post type (post, attachment, page,600 * custom post types)?671 * Determines whether the query is for an existing single post of any post type 672 * (post, attachment, page, custom post types). 601 673 * 602 674 * If the $post_types parameter is specified, this function will additionally 603 675 * check if the query is for one of the Posts Types specified. 604 * 676 * 677 * For more information on this and similar theme functions, check out 678 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 679 * Conditional Tags} article in the Theme Developer Handbook. 680 * 605 681 * @see is_page() 606 682 * @see is_single() … … 625 701 626 702 /** 627 * Is the query for a specific time? 703 * Determines whether the query is for a specific time. 704 * 705 * For more information on this and similar theme functions, check out 706 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 707 * Conditional Tags} article in the Theme Developer Handbook. 628 708 * 629 709 * @since 1.5.0 … … 645 725 646 726 /** 647 * Is the query for a trackback endpoint call? 727 * Determines whether the query is for a trackback endpoint call. 728 * 729 * For more information on this and similar theme functions, check out 730 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 731 * Conditional Tags} article in the Theme Developer Handbook. 648 732 * 649 733 * @since 1.5.0 … … 665 749 666 750 /** 667 * Is the query for an existing year archive? 751 * Determines whether the query is for an existing year archive. 752 * 753 * For more information on this and similar theme functions, check out 754 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 755 * Conditional Tags} article in the Theme Developer Handbook. 668 756 * 669 757 * @since 1.5.0 … … 685 773 686 774 /** 687 * Is the query a 404 (returns no results)? 688 * 775 * Determines whether the query has resulted in a 404 (returns no results). 776 * 777 * For more information on this and similar theme functions, check out 778 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 779 * Conditional Tags} article in the Theme Developer Handbook. 780 * 689 781 * @since 1.5.0 690 782 * … … 725 817 726 818 /** 727 * Is the query the main query? 728 * 819 * Determines whether the query is the main query. 820 * 821 * For more information on this and similar theme functions, check out 822 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 823 * Conditional Tags} article in the Theme Developer Handbook. 824 * 729 825 * @since 3.3.0 730 826 * … … 769 865 770 866 /** 771 * Whether the caller is in the Loop. 867 * Determines whether the caller is in the Loop. 868 * 869 * For more information on this and similar theme functions, check out 870 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 871 * Conditional Tags} article in the Theme Developer Handbook. 772 872 * 773 873 * @since 2.0.0
Note: See TracChangeset
for help on using the changeset viewer.