Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (7 years ago)
Author:
DrewAPicture
Message:

Docs: Remove @access notations from method DocBlocks in wp-includes/* classes.

Prior to about 2013, many class methods lacked even access modifiers which made the @access notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs.

See #41452.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r38925 r41162  
    1313     *
    1414     * @since 2.0.0
    15      * @access public
    1615     * @var array
    1716     */
     
    2423     *
    2524     * @since 2.0.0
    26      * @access public
    2725     * @var array
    2826     */
     
    3331     *
    3432     * @since 2.1.0
    35      * @access public
    3633     * @var array
    3734     */
     
    4239     *
    4340     * @since 2.0.0
    44      * @access public
    4541     * @var array
    4642     */
     
    5147     *
    5248     * @since 2.0.0
    53      * @access public
    5449     * @var string
    5550     */
     
    6055     *
    6156     * @since 2.0.0
    62      * @access public
    6357     * @var string
    6458     */
     
    6963     *
    7064     * @since 2.0.0
    71      * @access public
    7265     * @var string
    7366     */
     
    7871     *
    7972     * @since 2.0.0
    80      * @access public
    8173     * @var string
    8274     */
     
    8779     *
    8880     * @since 2.0.0
    89      * @access public
    9081     * @var bool
    9182     */
     
    9687     *
    9788     * @since 2.1.0
    98      * @access public
    9989     *
    10090     * @param string $qv Query variable name.
     
    10999     *
    110100     * @since 4.5.0
    111      * @access public
    112101     *
    113102     * @param string $name Query variable name.
     
    121110     *
    122111     * @since 2.3.0
    123      * @access public
    124112     *
    125113     * @param string $key Query variable name.
     
    137125     *
    138126     * @since 2.0.0
    139      * @access public
    140127     *
    141128     * @global WP_Rewrite $wp_rewrite
     
    395382     * @since 2.0.0
    396383     * @since 4.4.0 `X-Pingback` header is added conditionally after posts have been queried in handle_404().
    397      * @access public
    398384     */
    399385    public function send_headers() {
     
    526512     *
    527513     * @since 2.0.0
    528      * @access public
    529514     */
    530515    public function build_query_string() {
     
    561546     *
    562547     * @since 2.0.0
    563      * @access public
    564548     *
    565549     * @global WP_Query     $wp_query
     
    598582     *
    599583     * @since 2.0.0
    600      * @access public
    601584     */
    602585    public function init() {
     
    608591     *
    609592     * @since 2.0.0
    610      * @access public
    611593     *
    612594     * @global WP_Query $wp_the_query
     
    632614     *
    633615     * @since 2.0.0
    634      * @access public
    635      *
     616     *
    636617     * @global WP_Query $wp_query
    637618     */
     
    725706     *
    726707     * @since 2.0.0
    727      * @access public
    728708     *
    729709     * @param string|array $query_args Passed to parse_request().
Note: See TracChangeset for help on using the changeset viewer.