WordPress.org

Make WordPress Core

Changeset 48835


Ignore:
Timestamp:
08/21/2020 12:41:43 AM (10 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct references to WP_Filesystem_Base methods in various DocBlocks.

Props pbiron.
Fixes #51087.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r48089 r48835  
    123123     *
    124124     * @since 2.5.0
    125      * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() instead.
    126      * @see WP_Filesystem::abspath()
    127      * @see WP_Filesystem::wp_content_dir()
    128      * @see WP_Filesystem::wp_plugins_dir()
    129      * @see WP_Filesystem::wp_themes_dir()
    130      * @see WP_Filesystem::wp_lang_dir()
     125     * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead.
     126     * @see WP_Filesystem_Base::abspath()
     127     * @see WP_Filesystem_Base::wp_content_dir()
     128     * @see WP_Filesystem_Base::wp_plugins_dir()
     129     * @see WP_Filesystem_Base::wp_themes_dir()
     130     * @see WP_Filesystem_Base::wp_lang_dir()
    131131     *
    132132     * @param string $base The folder to start searching from.
     
    136136     */
    137137    public function find_base_dir( $base = '.', $echo = false ) {
    138         _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
     138        _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
    139139        $this->verbose = $echo;
    140140        return $this->abspath();
     
    145145     *
    146146     * @since 2.5.0
    147      * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead.
    148      * @see WP_Filesystem::abspath()
    149      * @see WP_Filesystem::wp_content_dir()
    150      * @see WP_Filesystem::wp_plugins_dir()
    151      * @see WP_Filesystem::wp_themes_dir()
    152      * @see WP_Filesystem::wp_lang_dir()
     147     * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead.
     148     * @see WP_Filesystem_Base::abspath()
     149     * @see WP_Filesystem_Base::wp_content_dir()
     150     * @see WP_Filesystem_Base::wp_plugins_dir()
     151     * @see WP_Filesystem_Base::wp_themes_dir()
     152     * @see WP_Filesystem_Base::wp_lang_dir()
    153153     *
    154154     * @param string $base The folder to start searching from.
     
    157157     */
    158158    public function get_base_dir( $base = '.', $echo = false ) {
    159         _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
     159        _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
    160160        $this->verbose = $echo;
    161161        return $this->abspath();
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r48590 r48835  
    345345
    346346    /**
    347      * Flatten the results of WP_Filesystem::dirlist() for iterating over.
     347     * Flatten the results of WP_Filesystem_Base::dirlist() for iterating over.
    348348     *
    349349     * @since 4.9.0
    350350     * @access protected
    351351     *
    352      * @param array  $nested_files Array of files as returned by WP_Filesystem::dirlist().
     352     * @param array  $nested_files Array of files as returned by WP_Filesystem_Base::dirlist().
    353353     * @param string $path         Relative path to prepend to child nodes. Optional.
    354354     * @return array A flattened array of the $nested_files specified.
Note: See TracChangeset for help on using the changeset viewer.