Ticket #43254: 43254.diff
| File 43254.diff, 18.2 KB (added by , 8 years ago) |
|---|
-
src/wp-admin/includes/plugin.php
463 463 * 464 464 * Plugins in the mu-plugins/ folder can't be "activated," so this function will 465 465 * return false for those plugins. 466 * 466 * 467 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 468 * 467 469 * @since 2.5.0 468 470 * 469 471 * @param string $plugin Path to the main plugin file from plugins directory. … … 477 479 * Check whether the plugin is inactive. 478 480 * 479 481 * Reverse of is_plugin_active(). Used as a callback. 480 * 482 * 483 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 484 * 481 485 * @since 3.1.0 482 486 * @see is_plugin_active() 483 487 * … … 495 499 * 496 500 * Plugins in the mu-plugins/ folder can't be "activated," so this function will 497 501 * return false for those plugins. 498 * 502 * 503 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 504 * 499 505 * @since 3.0.0 500 506 * 501 507 * @param string $plugin Path to the main plugin file from plugins directory. -
src/wp-includes/admin-bar.php
1118 1118 1119 1119 /** 1120 1120 * Determine whether the admin bar should be showing. 1121 * 1121 * 1122 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1123 * 1122 1124 * @since 3.1.0 1123 1125 * 1124 1126 * @global bool $show_admin_bar -
src/wp-includes/author-template.php
524 524 * Does this site have more than one author 525 525 * 526 526 * Checks to see if more than one author has published posts. 527 * 527 * 528 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 529 * 528 530 * @since 3.2.0 529 531 * 530 532 * @global wpdb $wpdb WordPress database abstraction object. -
src/wp-includes/category-template.php
231 231 * Prior to v2.7, only one category could be compared: in_category( $single_category ). 232 232 * Prior to v2.7, this function could only be used in the WordPress Loop. 233 233 * As of 2.7, the function can be used anywhere if it is provided a post ID or post object. 234 * 235 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 234 236 * 235 237 * @since 1.2.0 236 238 * … … 1415 1417 * Prior to v2.7 of WordPress, tags given as integers would also be checked against the post's tags' names and slugs (in addition to term_ids) 1416 1418 * Prior to v2.7, this function could only be used in the WordPress Loop. 1417 1419 * As of 2.7, the function can be used anywhere if it is provided a post ID or post object. 1420 * 1421 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1418 1422 * 1419 1423 * @since 2.6.0 1420 1424 * -
src/wp-includes/comment-template.php
1202 1202 1203 1203 /** 1204 1204 * Whether the current post is open for comments. 1205 * 1205 * 1206 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1207 * 1206 1208 * @since 1.5.0 1207 1209 * 1208 1210 * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post. … … 1228 1230 1229 1231 /** 1230 1232 * Whether the current post is open for pings. 1233 * 1234 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1231 1235 * 1232 1236 * @since 1.5.0 1233 1237 * -
src/wp-includes/deprecated.php
2511 2511 * Is the current admin page generated by a plugin? 2512 2512 * 2513 2513 * Use global $plugin_page and/or get_plugin_page_hookname() hooks. 2514 * 2514 * 2515 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 2516 * 2515 2517 * @since 1.5.0 2516 2518 * @deprecated 3.1.0 2517 2519 * … … 3714 3716 3715 3717 /** 3716 3718 * Whether the current URL is within the comments popup window. 3717 * 3719 * 3720 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 3721 * 3718 3722 * @since 1.5.0 3719 3723 * @deprecated 4.5.0 3720 3724 * -
src/wp-includes/functions.php
673 673 /** 674 674 * Whether the publish date of the current post in the loop is different from the 675 675 * publish date of the previous post in the loop. 676 * 676 * 677 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 678 * 677 679 * @since 0.71 678 680 * 679 681 * @global string $currentday The day of the current post in the loop. … … 1389 1391 * cache, and the database goes away, then you might have problems. 1390 1392 * 1391 1393 * Checks for the 'siteurl' option for whether WordPress is installed. 1394 * 1395 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1392 1396 * 1393 1397 * @since 2.1.0 1394 1398 * -
src/wp-includes/functions.wp-scripts.php
320 320 321 321 /** 322 322 * Check whether a script has been added to the queue. 323 * 323 * 324 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 325 * 324 326 * @since 2.8.0 325 327 * @since 3.5.0 'enqueued' added as an alias of the 'queue' list. 326 328 * -
src/wp-includes/l10n.php
1288 1288 1289 1289 /** 1290 1290 * Checks if current locale is RTL. 1291 * 1292 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1291 1293 * 1292 1294 * @since 3.0.0 1293 1295 * -
src/wp-includes/load.php
756 756 * 757 757 * Does not check if the user is an administrator; current_user_can() 758 758 * for checking roles and capabilities. 759 * 760 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 759 761 * 760 762 * @since 1.5.1 761 763 * -
src/wp-includes/pluggable.php
983 983 /** 984 984 * Checks if the current visitor is a logged in user. 985 985 * 986 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 987 * 986 988 * @since 2.0.0 987 989 * 988 990 * @return bool True if user is logged in, false if not logged in. -
src/wp-includes/post-template.php
413 413 414 414 /** 415 415 * Whether the post has a custom excerpt. 416 * 417 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 416 418 * 417 419 * @since 2.3.0 418 420 * … … 1691 1693 * This template tag allows you to determine if you are in a page template. 1692 1694 * You can optionally provide a template name or array of template names 1693 1695 * and then the check will be specific to that template. 1694 * 1696 * 1697 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1698 * 1695 1699 * @since 2.5.0 1696 1700 * @since 4.2.0 The `$template` parameter was changed to also accept an array of page templates. 1697 1701 * @since 4.7.0 Now works with any post type, not just pages. -
src/wp-includes/post-thumbnail-template.php
11 11 12 12 /** 13 13 * Check if post has an image attached. 14 * 15 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 14 16 * 15 17 * @since 2.9.0 16 18 * @since 4.4.0 `$post` can be a post ID or WP_Post object. -
src/wp-includes/post.php
972 972 973 973 /** 974 974 * Check if a post type is registered. 975 * 976 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 975 977 * 976 978 * @since 3.0.0 977 979 * … … 1985 1987 * 1986 1988 * Sticky posts should remain at the top of The Loop. If the post ID is not 1987 1989 * given, then The Loop ID for the current post will be used. 1988 * 1990 * 1991 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1992 * 1989 1993 * @since 2.7.0 1990 1994 * 1991 1995 * @param int $post_id Optional. Post ID. Default is ID of the global $post. … … 5046 5050 5047 5051 /** 5048 5052 * Check if the attachment URI is local one and is really an attachment. 5049 * 5053 * 5054 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 5055 * 5050 5056 * @since 2.0.0 5051 5057 * 5052 5058 * @param string $url URL to check … … 5521 5527 5522 5528 /** 5523 5529 * Checks if the attachment is an image. 5530 * 5531 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 5524 5532 * 5525 5533 * @since 2.1.0 5526 5534 * @since 4.2.0 Modified into wrapper for wp_attachment_is() and -
src/wp-includes/query.php
139 139 * Is the query for an existing archive page? 140 140 * 141 141 * Month, Year, Category, Author, Post Type archive... 142 * 142 * 143 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 144 * 143 145 * @since 1.5.0 144 146 * 145 147 * @global WP_Query $wp_query Global WP_Query instance. … … 159 161 160 162 /** 161 163 * Is the query for an existing post type archive page? 162 * 164 * 165 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 166 * 163 167 * @since 3.1.0 164 168 * 165 169 * @global WP_Query $wp_query Global WP_Query instance. … … 180 184 181 185 /** 182 186 * Is the query for an existing attachment page? 183 * 187 * 188 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 189 * 184 190 * @since 2.0.0 185 191 * 186 192 * @global WP_Query $wp_query Global WP_Query instance. … … 204 210 * 205 211 * If the $author parameter is specified, this function will additionally 206 212 * check if the query is for one of the authors specified. 207 * 213 * 214 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 215 * 208 216 * @since 1.5.0 209 217 * 210 218 * @global WP_Query $wp_query Global WP_Query instance. … … 228 236 * 229 237 * If the $category parameter is specified, this function will additionally 230 238 * check if the query is for one of the categories specified. 231 * 239 * 240 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 241 * 232 242 * @since 1.5.0 233 243 * 234 244 * @global WP_Query $wp_query Global WP_Query instance. … … 252 262 * 253 263 * If the $tag parameter is specified, this function will additionally 254 264 * check if the query is for one of the tags specified. 265 * 266 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 255 267 * 256 268 * @since 2.3.0 257 269 * … … 280 292 * If the $term parameter is specified in addition to the $taxonomy parameter, 281 293 * this function will additionally check if the query is for one of the terms 282 294 * specified. 295 * 296 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 283 297 * 284 298 * @since 2.5.0 285 299 * … … 302 316 303 317 /** 304 318 * Is the query for an existing date archive? 305 * 319 * 320 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 321 * 306 322 * @since 1.5.0 307 323 * 308 324 * @global WP_Query $wp_query Global WP_Query instance. … … 324 340 * Is the query for an existing day archive? 325 341 * 326 342 * A conditional check to test whether the page is a date-based archive page displaying posts for the current day. 327 * 343 * 344 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 345 * 328 346 * @since 1.5.0 329 347 * 330 348 * @global WP_Query $wp_query Global WP_Query instance. … … 344 362 345 363 /** 346 364 * Is the query for a feed? 347 * 365 * 366 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 367 * 348 368 * @since 1.5.0 349 369 * 350 370 * @global WP_Query $wp_query Global WP_Query instance. … … 394 414 * true when viewing that page. 395 415 * 396 416 * Otherwise the same as @see is_home() 397 * 417 * 418 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 419 * 398 420 * @since 2.5.0 399 421 * 400 422 * @global WP_Query $wp_query Global WP_Query instance. … … 422 444 * 423 445 * If a static page is set for the front page of the site, this function will return true only 424 446 * on the page you set as the "Posts page". 425 * 447 * 448 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 449 * 426 450 * @since 1.5.0 427 451 * 428 452 * @see is_front_page() … … 443 467 444 468 /** 445 469 * Is the query for an existing month archive? 446 * 470 * 471 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 472 * 447 473 * @since 1.5.0 448 474 * 449 475 * @global WP_Query $wp_query Global WP_Query instance. … … 466 492 * 467 493 * If the $page parameter is specified, this function will additionally 468 494 * check if the query is for one of the pages specified. 469 * 495 * 496 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 497 * 470 498 * @see is_single() 471 499 * @see is_singular() 472 500 * … … 490 518 491 519 /** 492 520 * Is the query for paged result and not for the first page? 493 * 521 * 522 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 523 * 494 524 * @since 1.5.0 495 525 * 496 526 * @global WP_Query $wp_query Global WP_Query instance. … … 510 540 511 541 /** 512 542 * Is the query for a post or page preview? 513 * 543 * 544 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 545 * 514 546 * @since 2.0.0 515 547 * 516 548 * @global WP_Query $wp_query Global WP_Query instance. … … 550 582 551 583 /** 552 584 * Is the query for a search? 553 * 585 * 586 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 587 * 554 588 * @since 1.5.0 555 589 * 556 590 * @global WP_Query $wp_query Global WP_Query instance. … … 575 609 * 576 610 * If the $post parameter is specified, this function will additionally 577 611 * check if the query is for one of the Posts specified. 578 * 612 * 613 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 614 * 579 615 * @see is_page() 580 616 * @see is_singular() 581 617 * … … 603 639 * 604 640 * If the $post_types parameter is specified, this function will additionally 605 641 * check if the query is for one of the Posts Types specified. 606 * 642 * 643 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 644 * 607 645 * @see is_page() 608 646 * @see is_single() 609 647 * … … 627 665 628 666 /** 629 667 * Is the query for a specific time? 668 * 669 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 630 670 * 631 671 * @since 1.5.0 632 672 * … … 647 687 648 688 /** 649 689 * Is the query for a trackback endpoint call? 690 * 691 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 650 692 * 651 693 * @since 1.5.0 652 694 * … … 667 709 668 710 /** 669 711 * Is the query for an existing year archive? 712 * 713 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 670 714 * 671 715 * @since 1.5.0 672 716 * … … 687 731 688 732 /** 689 733 * Is the query a 404 (returns no results)? 690 * 734 * 735 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 736 * 691 737 * @since 1.5.0 692 738 * 693 739 * @global WP_Query $wp_query Global WP_Query instance. … … 727 773 728 774 /** 729 775 * Is the query the main query? 730 * 776 * 777 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 778 * 731 779 * @since 3.3.0 732 780 * 733 781 * @global WP_Query $wp_query Global WP_Query instance. … … 771 819 772 820 /** 773 821 * Whether the caller is in the Loop. 822 * 823 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 774 824 * 775 825 * @since 2.0.0 776 826 * -
src/wp-includes/taxonomy.php
262 262 * Checks that the taxonomy name exists. 263 263 * 264 264 * Formerly is_taxonomy(), introduced in 2.3.0. 265 * 266 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 265 267 * 266 268 * @since 3.0.0 267 269 * … … 283 285 * object, and finally returns the hierarchical value in the object. 284 286 * 285 287 * A false return value might also mean that the taxonomy does not exist. 288 * 289 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 286 290 * 287 291 * @since 2.3.0 288 292 * … … 1318 1322 * Check if Term exists. 1319 1323 * 1320 1324 * Formerly is_term(), introduced in 2.3.0. 1325 * 1326 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1321 1327 * 1322 1328 * @since 3.0.0 1323 1329 * -
src/wp-includes/user.php
1370 1370 1371 1371 /** 1372 1372 * Checks whether the given username exists. 1373 * 1374 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1373 1375 * 1374 1376 * @since 2.0.0 1375 1377 * … … 1396 1398 1397 1399 /** 1398 1400 * Checks whether the given email exists. 1401 * 1402 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 1399 1403 * 1400 1404 * @since 2.1.0 1401 1405 * -
src/wp-includes/widgets.php
812 812 * 813 813 * NOTE: $widget_id and $id_base are the same for single widgets. To be effective 814 814 * this function has to run after widgets have initialized, at action {@see 'init'} or later. 815 * 815 * 816 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 817 * 816 818 * @since 2.2.0 817 819 * 818 820 * @global array $wp_registered_widgets … … 850 852 851 853 /** 852 854 * Whether the dynamic sidebar is enabled and used by theme. 853 * 855 * 856 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 857 * 854 858 * @since 2.2.0 855 859 * 856 860 * @global array $wp_registered_widgets … … 875 879 876 880 /** 877 881 * Whether a sidebar is in use. 878 * 882 * 883 * @link https://developer.wordpress.org/themes/basics/conditional-tags/ 884 * 879 885 * @since 2.8.0 880 886 * 881 887 * @param string|int $index Sidebar name, id or number to check.