~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/class-wp-filesystem-base.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
        /**
43
43
         * @access public
 
44
         * @var WP_Error
44
45
         */
45
46
        public $errors = null;
46
47
 
138
139
         * @return string The location of the remote path.
139
140
         */
140
141
        public function find_base_dir( $base = '.', $echo = false ) {
141
 
                _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
 
142
                _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
142
143
                $this->verbose = $echo;
143
144
                return $this->abspath();
144
145
        }
160
161
         * @return string The location of the remote path.
161
162
         */
162
163
        public function get_base_dir( $base = '.', $echo = false ) {
163
 
                _deprecated_function(__FUNCTION__, '2.7', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
 
164
                _deprecated_function(__FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' );
164
165
                $this->verbose = $echo;
165
166
                return $this->abspath();
166
167
        }
316
317
         *
317
318
         * From the PHP documentation page for fileperms().
318
319
         *
319
 
         * @link http://docs.php.net/fileperms
 
320
         * @link https://secure.php.net/manual/en/function.fileperms.php
320
321
         *
321
322
         * @access public
322
323
         * @since 2.5.0
384
385
         * Converts '-rw-r--r--' to 0644
385
386
         * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
386
387
         *
387
 
         * @link http://docs.php.net/manual/en/function.chmod.php#49614
 
388
         * @link https://secure.php.net/manual/en/function.chmod.php#49614
388
389
         *
389
390
         * @access public
390
391
         * @since 2.5.0