carestad
Forum Replies Created
-
And the after_setup_theme hook didn’t work. I had to use init for the function that calls
register_taxonomy()
.Oh God, feel like such an idiot now. In my functions.php i had:
load_theme_textdomain('foo', get_template_directory() . '/languages'); load_child_theme_textdomain('foo', get_stylesheet_directory() . '/languages');
Changing it to
load_theme_textdomain('foo', get_template_directory() . '/languages'); load_child_theme_textdomain('bar', get_stylesheet_directory() . '/languages');
And adding the textdomain as a second argument to the
_e()
and__()
functions made it work ('name' => __('Genre', 'bar')
).Thanks!
Forum: Plugins
In reply to: [StatPress] WP_DEBUG causes PHP warningsYes, and the use of eregi() is also deprecated in newer PHP versions, so please fix this
Oh, it’s because you’ve used short open tag in PHP one place. Some versions of PHP disables the use of short open tags. Just replace the
<? if ($flagged > 0) { ?>
with
<?php if ($flagged > 0) { ?>
on line 299 in media-file-renamer.php.
Isn’t the new version updated in SVN? I just downloaded the plugin and I’m getting the same error when trying to activate the plugin in WP.
Forum: Plugins
In reply to: [Post Requirements] [Plugin: Post Requirements] Parse errorAh. This is most likely becaus I’ve used a syntax for lambda functions that are only supported in PHP 5.4. I’ll try and change this for backwards compatibility.
Forum: Fixing WordPress
In reply to: 2.8.1 CodePress Syntax Highlighting Removed?I think they should try and find something else than CodePress. It hasn’t been developed in ages and doesn’t work that well these days.
What about a switch to EditArea (https://tr.im/viMi)?