Make WordPress Core

Changeset 46629


Ignore:
Timestamp:
11/02/2019 08:09:35 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @deprecated tags to PHP 4 constructors in pomo/entry.php and pomo/streams.php.

Props jrf.
Fixes #48252.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/entry.php

    r43635 r46629  
    6666                /**
    6767                 * PHP4 constructor.
     68                 *
     69                 * @deprecated 5.3.0 Use __construct() instead.
     70                 *
     71                 * @see Translation_Entry::__construct()
    6872                 */
    6973                public function Translation_Entry( $args = array() ) {
     74                        _deprecated_constructor( self::class, '5.3.0', static::class );
    7075                        self::__construct( $args );
    7176                }
  • trunk/src/wp-includes/pomo/streams.php

    r45580 r46629  
    2525                /**
    2626                 * PHP4 constructor.
     27                 *
     28                 * @deprecated 5.3.0 Use __construct() instead.
     29                 *
     30                 * @see POMO_Reader::__construct()
    2731                 */
    2832                public function POMO_Reader() {
     33                        _deprecated_constructor( self::class, '5.3.0', static::class );
    2934                        self::__construct();
    3035                }
     
    151156                /**
    152157                 * PHP4 constructor.
     158                 *
     159                 * @deprecated 5.3.0 Use __construct() instead.
     160                 *
     161                 * @see POMO_FileReader::__construct()
    153162                 */
    154163                public function POMO_FileReader( $filename ) {
     164                        _deprecated_constructor( self::class, '5.3.0', static::class );
    155165                        self::__construct( $filename );
    156166                }
     
    230240                /**
    231241                 * PHP4 constructor.
     242                 *
     243                 * @deprecated 5.3.0 Use __construct() instead.
     244                 *
     245                 * @see POMO_StringReader::__construct()
    232246                 */
    233247                public function POMO_StringReader( $str = '' ) {
     248                        _deprecated_constructor( self::class, '5.3.0', static::class );
    234249                        self::__construct( $str );
    235250                }
     
    296311                /**
    297312                 * PHP4 constructor.
     313                 *
     314                 * @deprecated 5.3.0 Use __construct() instead.
     315                 *
     316                 * @see POMO_CachedFileReader::__construct()
    298317                 */
    299318                public function POMO_CachedFileReader( $filename ) {
     319                        _deprecated_constructor( self::class, '5.3.0', static::class );
    300320                        self::__construct( $filename );
    301321                }
     
    317337                /**
    318338                 * PHP4 constructor.
     339                 *
     340                 * @deprecated 5.3.0 Use __construct() instead.
     341                 *
     342                 * @see POMO_CachedIntFileReader::__construct()
    319343                 */
    320344                function POMO_CachedIntFileReader( $filename ) {
     345                        _deprecated_constructor( self::class, '5.3.0', static::class );
    321346                        self::__construct( $filename );
    322347                }
Note: See TracChangeset for help on using the changeset viewer.