WordPress.org

Make WordPress Core

Changeset 36599


Ignore:
Timestamp:
02/20/16 20:33:48 (21 months ago)
Author:
ocean90
Message:

i18n-tools: Remove PHP4 constructor from add-textdomain.php.

_deprecated_constructor() isn't available in non-WordPress context.

See #31982.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/i18n/add-textdomain.php

    r36390 r36599  
    1616 
    1717    /** 
    18      * PHP5 constructor. 
     18     * Constructor. 
    1919     */ 
    2020    function __construct() { 
     
    2222        $this->funcs = array_keys( $makepot->rules ); 
    2323        $this->funcs[] = 'translate_nooped_plural'; 
    24     } 
    25  
    26     /** 
    27      * PHP4 constructor. 
    28      */ 
    29     public function AddTextdomain() { 
    30         _deprecated_constructor( 'AddTextdomain' , '4.3'  ); 
    3124    } 
    3225 
     
    111104        $inplace = true; 
    112105        if (!isset($argv[3])) $adddomain->usage(); 
    113         array_shift($argv);  
     106        array_shift($argv); 
    114107    } 
    115108 
Note: See TracChangeset for help on using the changeset viewer.