Changeset 38380
- Timestamp:
- 08/26/2016 06:46:17 PM (8 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-ftp-pure.php
r34281 r38380 26 26 * @license LGPL http://www.opensource.org/licenses/lgpl-license.html 27 27 */ 28 class ftp extends ftp_base {28 class ftp_pure extends ftp_base { 29 29 30 30 function __construct($verb=FALSE, $le=FALSE) { 31 31 parent::__construct(false, $verb, $le); 32 }33 34 function ftp($verb=FALSE, $le=FALSE) {35 $this->__construct($verb, $le);36 32 } 37 33 -
trunk/src/wp-admin/includes/class-ftp-sockets.php
r34281 r38380 26 26 * @license LGPL http://www.opensource.org/licenses/lgpl-license.html 27 27 */ 28 class ftp extends ftp_base {28 class ftp_sockets extends ftp_base { 29 29 30 30 function __construct($verb=FALSE, $le=FALSE) { 31 31 parent::__construct(true, $verb, $le); 32 }33 34 function ftp($verb=FALSE, $le=FALSE) {35 $this->__construct($verb, $le);36 32 } 37 33 -
trunk/src/wp-admin/includes/class-ftp.php
r35946 r38380 819 819 $sensitive=(PHP_OS!='WIN32'); 820 820 return ($sensitive? 821 preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) : 821 preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) : 822 822 preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $probe ) 823 823 ); … … 905 905 906 906 require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; 907 908 if ( $mod_sockets ) { 909 class ftp extends ftp_sockets {} 910 } else { 911 class ftp extends ftp_pure {} 912 }
Note: See TracChangeset
for help on using the changeset viewer.