From 4c4add2837ca70bad251a123a813065674dd6863 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 20 Feb 2016 20:33:48 +0000 Subject: [PATCH] i18n-tools: Remove PHP4 constructor from add-textdomain.php. `_deprecated_constructor()` isn't available in non-WordPress context. See #31982. git-svn-id: https://develop.svn.wordpress.org/trunk@36599 602fd350-edb4-49c9-b593-d223f7449a82 --- tools/i18n/add-textdomain.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/i18n/add-textdomain.php b/tools/i18n/add-textdomain.php index 7712ae28e1..f7fa28b3fd 100644 --- a/tools/i18n/add-textdomain.php +++ b/tools/i18n/add-textdomain.php @@ -15,7 +15,7 @@ class AddTextdomain { var $funcs; /** - * PHP5 constructor. + * Constructor. */ function __construct() { $makepot = new MakePOT; @@ -23,13 +23,6 @@ class AddTextdomain { $this->funcs[] = 'translate_nooped_plural'; } - /** - * PHP4 constructor. - */ - public function AddTextdomain() { - _deprecated_constructor( 'AddTextdomain' , '4.3' ); - } - function usage() { $usage = "Usage: php add-textdomain.php [-i] \n\nAdds the string as a last argument to all i18n function calls in \nand prints the modified php file on standard output.\n\nOptions:\n -i Modifies the PHP file in place, instead of printing it to standard output.\n"; fwrite(STDERR, $usage); @@ -110,7 +103,7 @@ if ($included_files[0] == __FILE__) { if ('-i' == $argv[1]) { $inplace = true; if (!isset($argv[3])) $adddomain->usage(); - array_shift($argv); + array_shift($argv); } $adddomain->process_file($argv[1], $argv[2], $inplace);