Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (8 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-xmlrpc-server.php

    r41114 r41162  
    2525     * Methods.
    2626     *
    27      * @access public
    2827     * @var array
    2928     */
     
    3332     * Blog options.
    3433     *
    35      * @access public
    3634     * @var array
    3735     */
     
    4139     * IXR_Error instance.
    4240     *
    43      * @access public
    4441     * @var IXR_Error
    4542     */
     
    4946     * Flags that the user authentication has failed in this instance of wp_xmlrpc_server.
    5047     *
    51      * @access protected
    5248     * @var bool
    5349     */
     
    175171     *
    176172     * @since 4.0.0
    177      * @access public
    178173     *
    179174     * @param callable $name      Method to call.
     
    192187     *
    193188     * @since 2.9.0
    194      * @access public
    195189     */
    196190    public function serve_request() {
     
    725719     *
    726720     * @since 3.4.0
    727      * @access protected
    728721     *
    729722     * @param string|array $args Sanitize single string or array of strings.
     
    743736     * Prepares taxonomy data for return in an XML-RPC object.
    744737     *
    745      * @access protected
    746738     *
    747739     * @param object $taxonomy The unprepared taxonomy data.
     
    786778     * Prepares term data for return in an XML-RPC object.
    787779     *
    788      * @access protected
    789780     *
    790781     * @param array|object $term The unprepared term data.
     
    822813     * Convert a WordPress date string to an IXR_Date object.
    823814     *
    824      * @access protected
    825815     *
    826816     * @param string $date Date string to convert.
     
    837827     * Convert a WordPress GMT date string to an IXR_Date object.
    838828     *
    839      * @access protected
    840829     *
    841830     * @param string $date_gmt WordPress GMT date string.
     
    853842     * Prepares post data for return in an XML-RPC object.
    854843     *
    855      * @access protected
    856844     *
    857845     * @param array $post   The unprepared post data.
     
    954942     * @since 3.4.0
    955943     * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    956      * @access protected
    957944     *
    958945     * @param WP_Post_Type $post_type Post type object.
     
    1005992     * Prepares media item data for return in an XML-RPC object.
    1006993     *
    1007      * @access protected
    1008994     *
    1009995     * @param object $media_item     The unprepared media item data.
     
    10451031     * Prepares page data for return in an XML-RPC object.
    10461032     *
    1047      * @access protected
    10481033     *
    10491034     * @param object $page The unprepared page data.
     
    11261111     * Prepares comment data for return in an XML-RPC object.
    11271112     *
    1128      * @access protected
    11291113     *
    11301114     * @param object $comment The unprepared comment data.
     
    11751159     * Prepares user data for return in an XML-RPC object.
    11761160     *
    1177      * @access protected
    11781161     *
    11791162     * @param WP_User $user   The unprepared user object.
     
    13201303     *
    13211304     * @since 4.3.0
    1322      * @access private
    13231305     *
    13241306     * @param array $post_data
     
    13571339     *
    13581340     * @since 3.4.0
    1359      * @access protected
    13601341     *
    13611342     * @see wp_insert_post()
     
    44704451     *
    44714452     * @since 3.0.0
    4472      * @access protected
    44734453     *
    44744454     * @param array $args {
Note: See TracChangeset for help on using the changeset viewer.