Make WordPress Core

Changeset 43827


Ignore:
Timestamp:
10/26/2018 01:23:29 AM (6 years ago)
Author:
DrewAPicture
Message:

Docs: Link to the "Conditional Tags" article in the Theme Developer Handbook from the descriptions for a variety of core conditional tag functions.

These notations largely serve to direct consumers (of both the source and the parsed code reference) to extended information on individual and related conditional tags throughout WordPress. The changeset also standardizes corresponding DocBlock summaries to use third-person singular verbs.

Notations have been added for the following functions:

  • comments_open()
  • email exists()
  • has_excerpt()
  • has_post_thumbnail()
  • has_tag()
  • in_category()
  • in_the_loop()
  • is_404()
  • is_active_sidebar()
  • is_active_widget()
  • is_admin()
  • is_admin_bar_showing()
  • is_archive()
  • is_attachment()
  • is_author()
  • is_blog_installed()
  • is_category()
  • is_comments_popup()
  • is_date()
  • is_day()
  • is_dynamic_sidebar()
  • is_feed()
  • is_front_page()
  • is_home()
  • is_local_attachment()
  • is_main_query
  • is_month()
  • is_multi_author
  • is_new_day()
  • is_page()
  • is_page_template()
  • is_paged()
  • is_plugin_active()
  • is_plugin_active_for_network()
  • is_plugin_inactive()
  • is_plugin_page()
  • is_post_type_archive()
  • is_preview()
  • is_rtl()
  • is_search()
  • is_single()
  • is_singular()
  • is_sticky()
  • is_tag()
  • is_tax()
  • is_taxonomy_hierarchical()
  • is_time()
  • is_trackback()
  • is_user_logged_in()
  • is_year()
  • pings_open()
  • post_type_exists()
  • taxonomy_exists()
  • term_exists()
  • username exists()
  • wp_attachment_is_image()
  • wp_script_is()

Merges [42710] to the 5.0 branch.

Props janalwin.
Fixes #43254.

Location:
branches/5.0/src
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/includes/plugin.php

    r43364 r43827  
    431431
    432432/**
    433  * Check whether a plugin is active.
     433 * Determines whether a plugin is active.
    434434 *
    435435 * Only plugins installed in the plugins/ folder can be active.
     
    437437 * Plugins in the mu-plugins/ folder can't be "activated," so this function will
    438438 * return false for those plugins.
    439  *
     439 *
     440 * For more information on this and similar theme functions, check out
     441 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     442 * Conditional Tags} article in the Theme Developer Handbook.
     443 *
    440444 * @since 2.5.0
    441445 *
     
    448452
    449453/**
    450  * Check whether the plugin is inactive.
     454 * Determines whether the plugin is inactive.
    451455 *
    452456 * Reverse of is_plugin_active(). Used as a callback.
    453  *
     457 *
     458 * For more information on this and similar theme functions, check out
     459 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     460 * Conditional Tags} article in the Theme Developer Handbook.
     461 *
    454462 * @since 3.1.0
    455463 * @see is_plugin_active()
     
    463471
    464472/**
    465  * Check whether the plugin is active for the entire network.
     473 * Determines whether the plugin is active for the entire network.
    466474 *
    467475 * Only plugins installed in the plugins/ folder can be active.
     
    469477 * Plugins in the mu-plugins/ folder can't be "activated," so this function will
    470478 * return false for those plugins.
    471  *
     479 *
     480 * For more information on this and similar theme functions, check out
     481 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     482 * Conditional Tags} article in the Theme Developer Handbook.
     483 *
    472484 * @since 3.0.0
    473485 *
    474486 * @param string $plugin Path to the main plugin file from plugins directory.
    475  * @return bool True, if active for the network, otherwise false.
     487 * @return bool True if active for the network, otherwise false.
    476488 */
    477489function is_plugin_active_for_network( $plugin ) {
  • branches/5.0/src/wp-includes/admin-bar.php

    r41796 r43827  
    986986
    987987/**
    988  * Determine whether the admin bar should be showing.
    989  *
     988 * Determines whether the admin bar should be showing.
     989 *
     990 * For more information on this and similar theme functions, check out
     991 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     992 * Conditional Tags} article in the Theme Developer Handbook.
     993 *
    990994 * @since 3.1.0
    991995 *
  • branches/5.0/src/wp-includes/author-template.php

    r41376 r43827  
    504504
    505505/**
    506  * Does this site have more than one author
     506 * Determines whether this site has more than one author.
    507507 *
    508508 * Checks to see if more than one author has published posts.
    509  *
     509 *
     510 * For more information on this and similar theme functions, check out
     511 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     512 * Conditional Tags} article in the Theme Developer Handbook.
     513 *
    510514 * @since 3.2.0
    511515 *
  • branches/5.0/src/wp-includes/category-template.php

    r42418 r43827  
    213213
    214214/**
    215  * Check if the current post is within any of the given categories.
     215 * Checks if the current post is within any of the given categories.
    216216 *
    217217 * The given categories are checked against the post's categories' term_ids, names and slugs.
     
    223223 * Prior to v2.7, this function could only be used in the WordPress Loop.
    224224 * As of 2.7, the function can be used anywhere if it is provided a post ID or post object.
     225 *
     226 * For more information on this and similar theme functions, check out
     227 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     228 * Conditional Tags} article in the Theme Developer Handbook.
    225229 *
    226230 * @since 1.2.0
     
    13681372
    13691373/**
    1370  * Check if the current post has any of given tags.
     1374 * Checks if the current post has any of given tags.
    13711375 *
    13721376 * The given tags are checked against the post's tags' term_ids, names and slugs.
     
    13771381 * Prior to v2.7, this function could only be used in the WordPress Loop.
    13781382 * As of 2.7, the function can be used anywhere if it is provided a post ID or post object.
     1383 *
     1384 * For more information on this and similar theme functions, check out
     1385 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1386 * Conditional Tags} article in the Theme Developer Handbook.
    13791387 *
    13801388 * @since 2.6.0
  • branches/5.0/src/wp-includes/comment-template.php

    r43532 r43827  
    11821182
    11831183/**
    1184  * Whether the current post is open for comments.
    1185  *
     1184 * Determines whether the current post is open for comments.
     1185 *
     1186 * For more information on this and similar theme functions, check out
     1187 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1188 * Conditional Tags} article in the Theme Developer Handbook.
     1189 *
    11861190 * @since 1.5.0
    11871191 *
     
    12081212
    12091213/**
    1210  * Whether the current post is open for pings.
     1214 * Determines whether the current post is open for pings.
     1215 *
     1216 * For more information on this and similar theme functions, check out
     1217 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1218 * Conditional Tags} article in the Theme Developer Handbook.
    12111219 *
    12121220 * @since 1.5.0
  • branches/5.0/src/wp-includes/deprecated.php

    r41787 r43827  
    25092509
    25102510/**
    2511  * Is the current admin page generated by a plugin?
     2511 * Determines whether the current admin page is generated by a plugin.
    25122512 *
    25132513 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
    2514  *
     2514 *
     2515 * For more information on this and similar theme functions, check out
     2516 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     2517 * Conditional Tags} article in the Theme Developer Handbook.
     2518 *
    25152519 * @since 1.5.0
    25162520 * @deprecated 3.1.0
     
    37143718
    37153719/**
    3716  * Whether the current URL is within the comments popup window.
    3717  *
     3720 * Determines whether the current URL is within the comments popup window.
     3721 *
     3722 * For more information on this and similar theme functions, check out
     3723 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     3724 * Conditional Tags} article in the Theme Developer Handbook.
     3725 *
    37183726 * @since 1.5.0
    37193727 * @deprecated 4.5.0
  • branches/5.0/src/wp-includes/functions.php

    r43703 r43827  
    655655
    656656/**
    657  * Whether the publish date of the current post in the loop is different from the
    658  * publish date of the previous post in the loop.
    659  *
     657 * Determines whether the publish date of the current post in the loop is different
     658 * from the publish date of the previous post in the loop.
     659 *
     660 * For more information on this and similar theme functions, check out
     661 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     662 * Conditional Tags} article in the Theme Developer Handbook.
     663 *
    660664 * @since 0.71
    661665 *
     
    13411345
    13421346/**
    1343  * Test whether WordPress is already installed.
     1347 * Determines whether WordPress is already installed.
    13441348 *
    13451349 * The cache will be checked first. If you have a cache plugin, which saves
     
    13481352 *
    13491353 * Checks for the 'siteurl' option for whether WordPress is installed.
     1354 *
     1355 * For more information on this and similar theme functions, check out
     1356 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1357 * Conditional Tags} article in the Theme Developer Handbook.
    13501358 *
    13511359 * @since 2.1.0
  • branches/5.0/src/wp-includes/functions.wp-scripts.php

    r43825 r43827  
    330330
    331331/**
    332  * Check whether a script has been added to the queue.
    333  *
     332 * Determines whether a script has been added to the queue.
     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 * 
    334338 * @since 2.8.0
    335339 * @since 3.5.0 'enqueued' added as an alias of the 'queue' list.
  • branches/5.0/src/wp-includes/l10n.php

    r43825 r43827  
    13861386
    13871387/**
    1388  * Checks if current locale is RTL.
     1388 * Determines whether the current locale is right-to-left (RTL).
     1389 *
     1390 * For more information on this and similar theme functions, check out
     1391 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1392 * Conditional Tags} article in the Theme Developer Handbook.
    13891393 *
    13901394 * @since 3.0.0
  • branches/5.0/src/wp-includes/load.php

    r43730 r43827  
    702702
    703703/**
    704  * Whether the current request is for an administrative interface page.
     704 * Determines whether the current request is for an administrative interface page.
    705705 *
    706706 * Does not check if the user is an administrator; current_user_can()
    707707 * for checking roles and capabilities.
     708 *
     709 * For more information on this and similar theme functions, check out
     710 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     711 * Conditional Tags} article in the Theme Developer Handbook.
    708712 *
    709713 * @since 1.5.1
  • branches/5.0/src/wp-includes/pluggable.php

    r43349 r43827  
    976976if ( !function_exists('is_user_logged_in') ) :
    977977/**
    978  * Checks if the current visitor is a logged in user.
     978 * Determines whether the current visitor is a logged in user.
     979 *
     980 * For more information on this and similar theme functions, check out
     981 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     982 * Conditional Tags} article in the Theme Developer Handbook.
    979983 *
    980984 * @since 2.0.0
  • branches/5.0/src/wp-includes/post-template.php

    r43790 r43827  
    399399
    400400/**
    401  * Whether the post has a custom excerpt.
     401 * Determines whether the post has a custom excerpt.
     402 *
     403 * For more information on this and similar theme functions, check out
     404 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     405 * Conditional Tags} article in the Theme Developer Handbook.
    402406 *
    403407 * @since 2.3.0
     
    16311635
    16321636/**
    1633  * Whether currently in a page template.
     1637 * Determines whether currently in a page template.
    16341638 *
    16351639 * This template tag allows you to determine if you are in a page template.
    16361640 * You can optionally provide a template name or array of template names
    16371641 * and then the check will be specific to that template.
    1638  *
     1642 *
     1643 * For more information on this and similar theme functions, check out
     1644 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1645 * Conditional Tags} article in the Theme Developer Handbook.
     1646 *
    16391647 * @since 2.5.0
    16401648 * @since 4.2.0 The `$template` parameter was changed to also accept an array of page templates.
  • branches/5.0/src/wp-includes/post-thumbnail-template.php

    r41267 r43827  
    1111
    1212/**
    13  * Check if post has an image attached.
     13 * Determines whether a post has an image attached.
     14 *
     15 * For more information on this and similar theme functions, check out
     16 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     17 * Conditional Tags} article in the Theme Developer Handbook.
    1418 *
    1519 * @since 2.9.0
  • branches/5.0/src/wp-includes/post.php

    r43819 r43827  
    10001000
    10011001/**
    1002  * Check if a post type is registered.
     1002 * Determines whether a post type is registered.
     1003 *
     1004 * For more information on this and similar theme functions, check out
     1005 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1006 * Conditional Tags} article in the Theme Developer Handbook.
    10031007 *
    10041008 * @since 3.0.0
     
    20192023
    20202024/**
    2021  * Check if post is sticky.
     2025 * Determines whether a post is sticky.
    20222026 *
    20232027 * Sticky posts should remain at the top of The Loop. If the post ID is not
    20242028 * given, then The Loop ID for the current post will be used.
    2025  *
     2029 *
     2030 * For more information on this and similar theme functions, check out
     2031 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     2032 * Conditional Tags} article in the Theme Developer Handbook.
     2033 *
    20262034 * @since 2.7.0
    20272035 *
     
    49914999
    49925000/**
    4993  * Check if the attachment URI is local one and is really an attachment.
    4994  *
     5001 * Determines whether an attachment URI is local and really an attachment.
     5002 *
     5003 * For more information on this and similar theme functions, check out
     5004 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     5005 * Conditional Tags} article in the Theme Developer Handbook.
     5006 *
    49955007 * @since 2.0.0
    49965008 *
     
    54885500
    54895501/**
    5490  * Checks if the attachment is an image.
     5502 * Determines whether an attachment is an image.
     5503 *
     5504 * For more information on this and similar theme functions, check out
     5505 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     5506 * Conditional Tags} article in the Theme Developer Handbook.
    54915507 *
    54925508 * @since 2.1.0
  • branches/5.0/src/wp-includes/query.php

    r43026 r43827  
    137137
    138138/**
    139  * Is the query for an existing archive page?
     139 * Determines whether the query is for an existing archive page.
    140140 *
    141141 * 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 *
    143147 * @since 1.5.0
    144148 *
     
    159163
    160164/**
    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 *
    163171 * @since 3.1.0
    164172 *
     
    180188
    181189/**
    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 *
    184196 * @since 2.0.0
    185197 *
     
    201213
    202214/**
    203  * Is the query for an existing author archive page?
     215 * Determines whether the query is for an existing author archive page.
    204216 *
    205217 * If the $author parameter is specified, this function will additionally
    206218 * 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 *
    208224 * @since 1.5.0
    209225 *
     
    225241
    226242/**
    227  * Is the query for an existing category archive page?
     243 * Determines whether the query is for an existing category archive page.
    228244 *
    229245 * If the $category parameter is specified, this function will additionally
    230246 * 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 *
    232252 * @since 1.5.0
    233253 *
     
    249269
    250270/**
    251  * Is the query for an existing tag archive page?
     271 * Determines whether the query is for an existing tag archive page.
    252272 *
    253273 * If the $tag parameter is specified, this function will additionally
    254274 * 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.
    255279 *
    256280 * @since 2.3.0
     
    273297
    274298/**
    275  * Is the query for an existing custom taxonomy archive page?
     299 * Determines whether the query is for an existing custom taxonomy archive page.
    276300 *
    277301 * If the $taxonomy parameter is specified, this function will additionally
     
    281305 * this function will additionally check if the query is for one of the terms
    282306 * 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.
    283311 *
    284312 * @since 2.5.0
     
    302330
    303331/**
    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 *
    306338 * @since 1.5.0
    307339 *
     
    322354
    323355/**
    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.
    325361 *
    326362 * @since 1.5.0
     
    342378
    343379/**
    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 *
    346386 * @since 1.5.0
    347387 *
     
    383423
    384424/**
    385  * Is the query for the front page of the site?
     425 * Determines whether the query is for the front page of the site.
    386426 *
    387427 * This is for what is displayed at your site's main URL.
     
    393433 *
    394434 * 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 *
    396440 * @since 2.5.0
    397441 *
     
    412456
    413457/**
    414  * Determines if the query is for the blog homepage.
     458 * Determines whether the query is for the blog homepage.
    415459 *
    416460 * The blog homepage is the page that shows the time-based blog content of the site.
     
    421465 * If a static page is set for the front page of the site, this function will return true only
    422466 * 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 *
    424472 * @since 1.5.0
    425473 *
     
    441489
    442490/**
    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 *
    445497 * @since 1.5.0
    446498 *
     
    461513
    462514/**
    463  * Is the query for an existing single page?
     515 * Determines whether the query is for an existing single page.
    464516 *
    465517 * If the $page parameter is specified, this function will additionally
    466518 * 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 *
    468524 * @see is_single()
    469525 * @see is_singular()
     
    488544
    489545/**
    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 *
    492552 * @since 1.5.0
    493553 *
     
    508568
    509569/**
    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 *
    512576 * @since 2.0.0
    513577 *
     
    548612
    549613/**
    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 *
    552620 * @since 1.5.0
    553621 *
     
    568636
    569637/**
    570  * Is the query for an existing single post?
     638 * Determines whether the query is for an existing single post.
    571639 *
    572640 * Works for any post type, except attachments and pages
     
    574642 * If the $post parameter is specified, this function will additionally
    575643 * 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 *
    577649 * @see is_page()
    578650 * @see is_singular()
     
    597669
    598670/**
    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).
    601673 *
    602674 * If the $post_types parameter is specified, this function will additionally
    603675 * 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 *
    605681 * @see is_page()
    606682 * @see is_single()
     
    625701
    626702/**
    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.
    628708 *
    629709 * @since 1.5.0
     
    645725
    646726/**
    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.
    648732 *
    649733 * @since 1.5.0
     
    665749
    666750/**
    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.
    668756 *
    669757 * @since 1.5.0
     
    685773
    686774/**
    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 *
    689781 * @since 1.5.0
    690782 *
     
    725817
    726818/**
    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 *
    729825 * @since 3.3.0
    730826 *
     
    769865
    770866/**
    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.
    772872 *
    773873 * @since 2.0.0
  • branches/5.0/src/wp-includes/taxonomy.php

    r43729 r43827  
    243243
    244244/**
    245  * Checks that the taxonomy name exists.
     245 * Determines whether the taxonomy name exists.
    246246 *
    247247 * Formerly is_taxonomy(), introduced in 2.3.0.
     248 *
     249 * For more information on this and similar theme functions, check out
     250 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     251 * Conditional Tags} article in the Theme Developer Handbook.
    248252 *
    249253 * @since 3.0.0
     
    261265
    262266/**
    263  * Whether the taxonomy object is hierarchical.
     267 * Determines whether the taxonomy object is hierarchical.
    264268 *
    265269 * Checks to make sure that the taxonomy is an object first. Then Gets the
     
    267271 *
    268272 * A false return value might also mean that the taxonomy does not exist.
     273 *
     274 * For more information on this and similar theme functions, check out
     275 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     276 * Conditional Tags} article in the Theme Developer Handbook.
    269277 *
    270278 * @since 2.3.0
     
    12661274
    12671275/**
    1268  * Check if Term exists.
     1276 * Determines whether a term exists.
    12691277 *
    12701278 * Formerly is_term(), introduced in 2.3.0.
     1279 *
     1280 * For more information on this and similar theme functions, check out
     1281 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1282 * Conditional Tags} article in the Theme Developer Handbook.
    12711283 *
    12721284 * @since 3.0.0
  • branches/5.0/src/wp-includes/user.php

    r43488 r43827  
    13151315
    13161316/**
    1317  * Checks whether the given username exists.
     1317 * Determines whether the given username exists.
     1318 *
     1319 * For more information on this and similar theme functions, check out
     1320 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1321 * Conditional Tags} article in the Theme Developer Handbook.
    13181322 *
    13191323 * @since 2.0.0
     
    13411345
    13421346/**
    1343  * Checks whether the given email exists.
     1347 * Determines whether the given email exists.
     1348 *
     1349 * For more information on this and similar theme functions, check out
     1350 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     1351 * Conditional Tags} article in the Theme Developer Handbook.
    13441352 *
    13451353 * @since 2.1.0
  • branches/5.0/src/wp-includes/widgets.php

    r43302 r43827  
    776776
    777777/**
    778  * Whether widget is displayed on the front end.
     778 * Determines whether a given widget is displayed on the front end.
    779779 *
    780780 * Either $callback or $id_base can be used
     
    787787 * NOTE: $widget_id and $id_base are the same for single widgets. To be effective
    788788 * this function has to run after widgets have initialized, at action {@see 'init'} or later.
    789  *
     789 *
     790 * For more information on this and similar theme functions, check out
     791 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     792 * Conditional Tags} article in the Theme Developer Handbook.
     793 *
    790794 * @since 2.2.0
    791795 *
     
    823827
    824828/**
    825  * Whether the dynamic sidebar is enabled and used by theme.
    826  *
     829 * Determines whether the dynamic sidebar is enabled and used by the theme.
     830 *
     831 * For more information on this and similar theme functions, check out
     832 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     833 * Conditional Tags} article in the Theme Developer Handbook.
     834 *
    827835 * @since 2.2.0
    828836 *
     
    846854
    847855/**
    848  * Whether a sidebar is in use.
    849  *
     856 * Determines whether a sidebar is in use.
     857 *
     858 * For more information on this and similar theme functions, check out
     859 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     860 * Conditional Tags} article in the Theme Developer Handbook.
     861 *
    850862 * @since 2.8.0
    851863 *
Note: See TracChangeset for help on using the changeset viewer.