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-oembed.php

    r40901 r41162  
    2323     *
    2424     * @since 2.9.0
    25      * @access public
    2625     * @var array
    2726     */
     
    3231     *
    3332     * @since 4.0.0
    34      * @access public
    3533     * @static
    3634     * @var array
     
    4240     *
    4341     * @since 4.2.0
    44      * @access private
    4542     * @var array
    4643     */
     
    5148     *
    5249     * @since 2.9.0
    53      * @access public
    5450     */
    5551    public function __construct() {
     
    212208     *
    213209     * @since 4.0.0
    214      * @access public
    215210     *
    216211     * @param callable $name      Method to call.
     
    229224     *
    230225     * @since 4.0.0
    231      * @access public
    232226     *
    233227     * @see WP_oEmbed::discover()
     
    276270     * @static
    277271     * @since 4.0.0
    278      * @access public
    279272     *
    280273     * @see wp_oembed_add_provider()
     
    303296     *
    304297     * @since 4.0.0
    305      * @access public
    306298     * @static
    307299     *
     
    325317     *
    326318     * @since 4.8.0
    327      * @access public
    328319     *
    329320     * @param string       $url  The URL to the content that should be attempted to be embedded.
     
    356347     *
    357348     * @since 2.9.0
    358      * @access public
    359349     *
    360350     * @param string       $url  The URL to the content that should be attempted to be embedded.
     
    406396     *
    407397     * @since 2.9.0
    408      * @access public
    409398     *
    410399     * @param string $url The URL that should be inspected for discovery `<link>` tags.
     
    490479     *
    491480     * @since 2.9.0
    492      * @access public
    493481     *
    494482     * @param string       $provider The URL to the oEmbed provider.
     
    528516     *
    529517     * @since 3.0.0
    530      * @access private
    531518     *
    532519     * @param string $provider_url_with_args URL to the provider with full arguments list (url, maxheight, etc.)
     
    553540     *
    554541     * @since 3.0.0
    555      * @access private
    556542     *
    557543     * @param string $response_body
     
    567553     *
    568554     * @since 3.0.0
    569      * @access private
    570555     *
    571556     * @param string $response_body
     
    591576     *
    592577     * @since 3.6.0
    593      * @access private
    594578     *
    595579     * @param string $response_body
     
    629613     *
    630614     * @since 2.9.0
    631      * @access public
    632615     *
    633616     * @param object $data A data object result from an oEmbed provider.
     
    686669     * @since 2.9.0 as strip_scribd_newlines()
    687670     * @since 3.0.0
    688      * @access public
    689671     *
    690672     * @param string $html Existing HTML.
Note: See TracChangeset for help on using the changeset viewer.