Make WordPress Core


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

Docs: Correct references to WP_Filesystem_Base methods in various DocBlocks.

Props pbiron.
Fixes #51087.

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.