Make WordPress Core

Ticket #43254: 43254.diff

File 43254.diff, 18.2 KB (added by janalwin, 8 years ago)
  • src/wp-admin/includes/plugin.php

     
    463463 *
    464464 * Plugins in the mu-plugins/ folder can't be "activated," so this function will
    465465 * return false for those plugins.
    466  *
     466 *
     467 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     468 *
    467469 * @since 2.5.0
    468470 *
    469471 * @param string $plugin Path to the main plugin file from plugins directory.
     
    477479 * Check whether the plugin is inactive.
    478480 *
    479481 * Reverse of is_plugin_active(). Used as a callback.
    480  *
     482 *
     483 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     484 *
    481485 * @since 3.1.0
    482486 * @see is_plugin_active()
    483487 *
     
    495499 *
    496500 * Plugins in the mu-plugins/ folder can't be "activated," so this function will
    497501 * return false for those plugins.
    498  *
     502 *
     503 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     504 *
    499505 * @since 3.0.0
    500506 *
    501507 * @param string $plugin Path to the main plugin file from plugins directory.
  • src/wp-includes/admin-bar.php

     
    11181118
    11191119/**
    11201120 * Determine whether the admin bar should be showing.
    1121  *
     1121 *
     1122 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     1123 *
    11221124 * @since 3.1.0
    11231125 *
    11241126 * @global bool   $show_admin_bar
  • src/wp-includes/author-template.php

     
    524524 * Does this site have more than one author
    525525 *
    526526 * Checks to see if more than one author has published posts.
    527  *
     527 *
     528 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     529 *
    528530 * @since 3.2.0
    529531 *
    530532 * @global wpdb $wpdb WordPress database abstraction object.
  • src/wp-includes/category-template.php

     
    231231 * Prior to v2.7, only one category could be compared: in_category( $single_category ).
    232232 * Prior to v2.7, this function could only be used in the WordPress Loop.
    233233 * 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/
    234236 *
    235237 * @since 1.2.0
    236238 *
     
    14151417 * 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)
    14161418 * Prior to v2.7, this function could only be used in the WordPress Loop.
    14171419 * 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/
    14181422 *
    14191423 * @since 2.6.0
    14201424 *
  • src/wp-includes/comment-template.php

     
    12021202
    12031203/**
    12041204 * Whether the current post is open for comments.
    1205  *
     1205 *
     1206 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     1207 *
    12061208 * @since 1.5.0
    12071209 *
    12081210 * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
     
    12281230
    12291231/**
    12301232 * Whether the current post is open for pings.
     1233 *
     1234 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    12311235 *
    12321236 * @since 1.5.0
    12331237 *
  • src/wp-includes/deprecated.php

     
    25112511 * Is the current admin page generated by a plugin?
    25122512 *
    25132513 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
    2514  *
     2514 *
     2515 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     2516 *
    25152517 * @since 1.5.0
    25162518 * @deprecated 3.1.0
    25172519 *
     
    37143716
    37153717/**
    37163718 * Whether the current URL is within the comments popup window.
    3717  *
     3719 *
     3720 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     3721 *
    37183722 * @since 1.5.0
    37193723 * @deprecated 4.5.0
    37203724 *
  • src/wp-includes/functions.php

     
    673673/**
    674674 * Whether the publish date of the current post in the loop is different from the
    675675 * publish date of the previous post in the loop.
    676  *
     676 *
     677 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     678 *
    677679 * @since 0.71
    678680 *
    679681 * @global string $currentday  The day of the current post in the loop.
     
    13891391 * cache, and the database goes away, then you might have problems.
    13901392 *
    13911393 * Checks for the 'siteurl' option for whether WordPress is installed.
     1394 *
     1395 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    13921396 *
    13931397 * @since 2.1.0
    13941398 *
  • src/wp-includes/functions.wp-scripts.php

     
    320320
    321321/**
    322322 * Check whether a script has been added to the queue.
    323  *
     323 *
     324 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     325 * 
    324326 * @since 2.8.0
    325327 * @since 3.5.0 'enqueued' added as an alias of the 'queue' list.
    326328 *
  • src/wp-includes/l10n.php

     
    12881288
    12891289/**
    12901290 * Checks if current locale is RTL.
     1291 *
     1292 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    12911293 *
    12921294 * @since 3.0.0
    12931295 *
  • src/wp-includes/load.php

     
    756756 *
    757757 * Does not check if the user is an administrator; current_user_can()
    758758 * for checking roles and capabilities.
     759 *
     760 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    759761 *
    760762 * @since 1.5.1
    761763 *
  • src/wp-includes/pluggable.php

     
    983983        /**
    984984         * Checks if the current visitor is a logged in user.
    985985         *
     986         * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     987         *
    986988         * @since 2.0.0
    987989         *
    988990         * @return bool True if user is logged in, false if not logged in.
  • src/wp-includes/post-template.php

     
    413413
    414414/**
    415415 * Whether the post has a custom excerpt.
     416 *
     417 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    416418 *
    417419 * @since 2.3.0
    418420 *
     
    16911693 * This template tag allows you to determine if you are in a page template.
    16921694 * You can optionally provide a template name or array of template names
    16931695 * and then the check will be specific to that template.
    1694  *
     1696 *
     1697 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     1698 *
    16951699 * @since 2.5.0
    16961700 * @since 4.2.0 The `$template` parameter was changed to also accept an array of page templates.
    16971701 * @since 4.7.0 Now works with any post type, not just pages.
  • src/wp-includes/post-thumbnail-template.php

     
    1111
    1212/**
    1313 * Check if post has an image attached.
     14 *
     15 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    1416 *
    1517 * @since 2.9.0
    1618 * @since 4.4.0 `$post` can be a post ID or WP_Post object.
  • src/wp-includes/post.php

     
    972972
    973973/**
    974974 * Check if a post type is registered.
     975 *
     976 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    975977 *
    976978 * @since 3.0.0
    977979 *
     
    19851987 *
    19861988 * Sticky posts should remain at the top of The Loop. If the post ID is not
    19871989 * 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 *
    19891993 * @since 2.7.0
    19901994 *
    19911995 * @param int $post_id Optional. Post ID. Default is ID of the global $post.
     
    50465050
    50475051/**
    50485052 * 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 *
    50505056 * @since 2.0.0
    50515057 *
    50525058 * @param string $url URL to check
     
    55215527
    55225528/**
    55235529 * Checks if the attachment is an image.
     5530 *
     5531 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    55245532 *
    55255533 * @since 2.1.0
    55265534 * @since 4.2.0 Modified into wrapper for wp_attachment_is() and
  • src/wp-includes/query.php

     
    139139 * Is the query for an existing archive page?
    140140 *
    141141 * Month, Year, Category, Author, Post Type archive...
    142  *
     142 *
     143 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     144 *
    143145 * @since 1.5.0
    144146 *
    145147 * @global WP_Query $wp_query Global WP_Query instance.
     
    159161
    160162/**
    161163 * Is the query for an existing post type archive page?
    162  *
     164 *
     165 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     166 *
    163167 * @since 3.1.0
    164168 *
    165169 * @global WP_Query $wp_query Global WP_Query instance.
     
    180184
    181185/**
    182186 * Is the query for an existing attachment page?
    183  *
     187 *
     188 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     189 *
    184190 * @since 2.0.0
    185191 *
    186192 * @global WP_Query $wp_query Global WP_Query instance.
     
    204210 *
    205211 * If the $author parameter is specified, this function will additionally
    206212 * check if the query is for one of the authors specified.
    207  *
     213 *
     214 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     215 *
    208216 * @since 1.5.0
    209217 *
    210218 * @global WP_Query $wp_query Global WP_Query instance.
     
    228236 *
    229237 * If the $category parameter is specified, this function will additionally
    230238 * check if the query is for one of the categories specified.
    231  *
     239 *
     240 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     241 *
    232242 * @since 1.5.0
    233243 *
    234244 * @global WP_Query $wp_query Global WP_Query instance.
     
    252262 *
    253263 * If the $tag parameter is specified, this function will additionally
    254264 * check if the query is for one of the tags specified.
     265 *
     266 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    255267 *
    256268 * @since 2.3.0
    257269 *
     
    280292 * If the $term parameter is specified in addition to the $taxonomy parameter,
    281293 * this function will additionally check if the query is for one of the terms
    282294 * specified.
     295 *
     296 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    283297 *
    284298 * @since 2.5.0
    285299 *
     
    302316
    303317/**
    304318 * Is the query for an existing date archive?
    305  *
     319 *
     320 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     321 *
    306322 * @since 1.5.0
    307323 *
    308324 * @global WP_Query $wp_query Global WP_Query instance.
     
    324340 * Is the query for an existing day archive?
    325341 *
    326342 * 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 *
    328346 * @since 1.5.0
    329347 *
    330348 * @global WP_Query $wp_query Global WP_Query instance.
     
    344362
    345363/**
    346364 * Is the query for a feed?
    347  *
     365 *
     366 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     367 *
    348368 * @since 1.5.0
    349369 *
    350370 * @global WP_Query $wp_query Global WP_Query instance.
     
    394414 * true when viewing that page.
    395415 *
    396416 * Otherwise the same as @see is_home()
    397  *
     417 *
     418 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     419 *
    398420 * @since 2.5.0
    399421 *
    400422 * @global WP_Query $wp_query Global WP_Query instance.
     
    422444 *
    423445 * If a static page is set for the front page of the site, this function will return true only
    424446 * on the page you set as the "Posts page".
    425  *
     447 *
     448 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     449 *
    426450 * @since 1.5.0
    427451 *
    428452 * @see is_front_page()
     
    443467
    444468/**
    445469 * Is the query for an existing month archive?
    446  *
     470 *
     471 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     472 *
    447473 * @since 1.5.0
    448474 *
    449475 * @global WP_Query $wp_query Global WP_Query instance.
     
    466492 *
    467493 * If the $page parameter is specified, this function will additionally
    468494 * check if the query is for one of the pages specified.
    469  *
     495 *
     496 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     497 *
    470498 * @see is_single()
    471499 * @see is_singular()
    472500 *
     
    490518
    491519/**
    492520 * 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 *
    494524 * @since 1.5.0
    495525 *
    496526 * @global WP_Query $wp_query Global WP_Query instance.
     
    510540
    511541/**
    512542 * Is the query for a post or page preview?
    513  *
     543 *
     544 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     545 *
    514546 * @since 2.0.0
    515547 *
    516548 * @global WP_Query $wp_query Global WP_Query instance.
     
    550582
    551583/**
    552584 * Is the query for a search?
    553  *
     585 *
     586 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     587 *
    554588 * @since 1.5.0
    555589 *
    556590 * @global WP_Query $wp_query Global WP_Query instance.
     
    575609 *
    576610 * If the $post parameter is specified, this function will additionally
    577611 * check if the query is for one of the Posts specified.
    578  *
     612 *
     613 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     614 *
    579615 * @see is_page()
    580616 * @see is_singular()
    581617 *
     
    603639 *
    604640 * If the $post_types parameter is specified, this function will additionally
    605641 * 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 *
    607645 * @see is_page()
    608646 * @see is_single()
    609647 *
     
    627665
    628666/**
    629667 * Is the query for a specific time?
     668 *
     669 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    630670 *
    631671 * @since 1.5.0
    632672 *
     
    647687
    648688/**
    649689 * Is the query for a trackback endpoint call?
     690 *
     691 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    650692 *
    651693 * @since 1.5.0
    652694 *
     
    667709
    668710/**
    669711 * Is the query for an existing year archive?
     712 *
     713 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    670714 *
    671715 * @since 1.5.0
    672716 *
     
    687731
    688732/**
    689733 * Is the query a 404 (returns no results)?
    690  *
     734 *
     735 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     736 *
    691737 * @since 1.5.0
    692738 *
    693739 * @global WP_Query $wp_query Global WP_Query instance.
     
    727773
    728774/**
    729775 * Is the query the main query?
    730  *
     776 *
     777 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     778 *
    731779 * @since 3.3.0
    732780 *
    733781 * @global WP_Query $wp_query Global WP_Query instance.
     
    771819
    772820/**
    773821 * Whether the caller is in the Loop.
     822 *
     823 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    774824 *
    775825 * @since 2.0.0
    776826 *
  • src/wp-includes/taxonomy.php

     
    262262 * Checks that the taxonomy name exists.
    263263 *
    264264 * Formerly is_taxonomy(), introduced in 2.3.0.
     265 *
     266 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    265267 *
    266268 * @since 3.0.0
    267269 *
     
    283285 * object, and finally returns the hierarchical value in the object.
    284286 *
    285287 * A false return value might also mean that the taxonomy does not exist.
     288 *
     289 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    286290 *
    287291 * @since 2.3.0
    288292 *
     
    13181322 * Check if Term exists.
    13191323 *
    13201324 * Formerly is_term(), introduced in 2.3.0.
     1325 *
     1326 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    13211327 *
    13221328 * @since 3.0.0
    13231329 *
  • src/wp-includes/user.php

     
    13701370
    13711371/**
    13721372 * Checks whether the given username exists.
     1373 *
     1374 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    13731375 *
    13741376 * @since 2.0.0
    13751377 *
     
    13961398
    13971399/**
    13981400 * Checks whether the given email exists.
     1401 *
     1402 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
    13991403 *
    14001404 * @since 2.1.0
    14011405 *
  • src/wp-includes/widgets.php

     
    812812 *
    813813 * NOTE: $widget_id and $id_base are the same for single widgets. To be effective
    814814 * 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 *
    816818 * @since 2.2.0
    817819 *
    818820 * @global array $wp_registered_widgets
     
    850852
    851853/**
    852854 * Whether the dynamic sidebar is enabled and used by theme.
    853  *
     855 *
     856 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     857 *
    854858 * @since 2.2.0
    855859 *
    856860 * @global array $wp_registered_widgets
     
    875879
    876880/**
    877881 * Whether a sidebar is in use.
    878  *
     882 *
     883 * @link https://developer.wordpress.org/themes/basics/conditional-tags/
     884 *
    879885 * @since 2.8.0
    880886 *
    881887 * @param string|int $index Sidebar name, id or number to check.