redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

load_textdomain in framework.php tosses deprecation error

Open TuxReports opened this issue 11 years ago • 2 comments

Line 647 in framework.php tosses a deprecation error:

load_textdomain( 'redux-framework', self::$_dir . 'languages/' . $locale . '.mo' );

I changed the line to the following and no longer get the error, however, I'm not sure if this is proper.

load_textdomain( 'redux-framework', false, self::$_dir . 'languages/' . $locale . '.mo' );

TuxReports avatar Dec 18 '14 05:12 TuxReports

http://codex.wordpress.org/Function_Reference/load_textdomain Shows the function take two params, not three. Don't know what to tell you there.

kprovance avatar Dec 18 '14 05:12 kprovance

I checked the new 4.1 code base, the function remains the same. No depreciation. My only guess is some rogue dev rolled their own version of that function in their plugin or theme, and now it's overloading Wordpress's, which is a BAD practice on their part. The only way to figure out which one it is is to disable them one at a time until the message goes away, then you'll have the culprit.

kprovance avatar Dec 18 '14 19:12 kprovance