Lukas G.
Forum Replies Created
-
Forum: Plugins
In reply to: [SVG Support] WP 4.7.1 Kills SVGUse the following plugin to fix this issue until it is resolved in WordPress Core:
Forum: Plugins
In reply to: [SVG Support] WP 4.7.1 Kills SVGThere are already two tickets in core about this issue:
Be aware that setting
define( 'ALLOW_UNFILTERED_UPLOADS', true );will only work if a user has administrator privileges.It works great! Thank you very much!
I figured that actually the
echobeforedo_action( 'es_message_head' );is not required. My bad, normally actions don’t get echoed out, because they don’t return anything. So<?php do_action( 'es_message_head' ); ?>would be enough. Luckily, this doesn’t have any bad effect. Just in case you want to slip that into your next release ;).If anyone happens to stumble over and wants to know how to apply the new
es_message_headaction:add_action( 'es_message_head', 'print_es_message_styles' ); // Enqueue theme styles and print them function print_es_message_styles() { wp_enqueue_style( 'styles', get_template_directory_uri() . '/build/styles.min.css' ); wp_print_styles( 'styles' ); }And then in your CSS you could do something like this
// Additional styles for email subscription confirmation messages displayed // when a subscriber clicks on a link in an email. .es_successfully_subscribed, .es_successfully_unsubscribed { max-width: 1000px; margin: 0 auto; padding-top: 40px; text-align: center; }You could also directly print your custom styles in the function. But if you have custom webfonts etc., it’s probably more convenient to work with the solution above.
// Enqueue theme styles and print them function print_es_message_styles() { echo '<style type="text/css"> .es_successfully_subscribed, .es_successfully_unsubscribed { max-width: 1000px; margin: 0 auto; text-align: center; } </style>'; }Awesome, thank you!
I run into the same error.
The plugin breaks on line 267 in
/wp-user-avatar/includes/class-wp-user-avatar-admin.php:$wpua_list .= '<p id="wpua-edit"><button type="button" class="button" id="wpua-add" name="wpua-add" data-avatar_default="true" data-title="'._('Choose Image').': '._('Default Avatar').'">'.__('Choose Image','wp-user-avatar').'</button>';I don’t know why exactly it breaks, but
_('Choose Image')and_('Default Avatar')are the culprits. They use the alias_()for PHP’s owngettext()function. If the plugin author could use__()for both of these, that would be great.