mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Code Modernization: Call PHP 5 constructors in methods extending POMO_Reader
.
Follow-up to [46629]. See #48252. Built from https://develop.svn.wordpress.org/trunk@46632 git-svn-id: http://core.svn.wordpress.org/trunk@46432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6cd00d098e
commit
24650cbd68
@ -149,7 +149,7 @@ if ( ! class_exists( 'POMO_FileReader', false ) ) :
|
|||||||
* @param string $filename
|
* @param string $filename
|
||||||
*/
|
*/
|
||||||
function __construct( $filename ) {
|
function __construct( $filename ) {
|
||||||
parent::POMO_Reader();
|
parent::__construct();
|
||||||
$this->_f = fopen( $filename, 'rb' );
|
$this->_f = fopen( $filename, 'rb' );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ if ( ! class_exists( 'POMO_StringReader', false ) ) :
|
|||||||
* PHP5 constructor.
|
* PHP5 constructor.
|
||||||
*/
|
*/
|
||||||
function __construct( $str = '' ) {
|
function __construct( $str = '' ) {
|
||||||
parent::POMO_Reader();
|
parent::__construct();
|
||||||
$this->_str = $str;
|
$this->_str = $str;
|
||||||
$this->_pos = 0;
|
$this->_pos = 0;
|
||||||
}
|
}
|
||||||
@ -300,7 +300,7 @@ if ( ! class_exists( 'POMO_CachedFileReader', false ) ) :
|
|||||||
* PHP5 constructor.
|
* PHP5 constructor.
|
||||||
*/
|
*/
|
||||||
function __construct( $filename ) {
|
function __construct( $filename ) {
|
||||||
parent::POMO_StringReader();
|
parent::__construct();
|
||||||
$this->_str = file_get_contents( $filename );
|
$this->_str = file_get_contents( $filename );
|
||||||
if ( false === $this->_str ) {
|
if ( false === $this->_str ) {
|
||||||
return false;
|
return false;
|
||||||
@ -331,7 +331,7 @@ if ( ! class_exists( 'POMO_CachedIntFileReader', false ) ) :
|
|||||||
* PHP5 constructor.
|
* PHP5 constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct( $filename ) {
|
public function __construct( $filename ) {
|
||||||
parent::POMO_CachedFileReader( $filename );
|
parent::__construct( $filename );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46631';
|
$wp_version = '5.4-alpha-46632';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user