Hi Johannes,
Thanks for reaching out, and my apologies for such a late reply!
In the 1.0.5 update, it reads (I should’ve used a spellchecker…):
Fixed: New WordPress installations (4.3 and up) don’t have the option to turn off smileys. This leads to incorrect character encoding of smiley abbrev[i]ations, like ?? and :D
. Therefor[e] the whole function to encode characters will be removed if emojis are set to “disabled”.
Fixed: Old WordPress installations with WordPress 4.3 and up will automatically set the smileys to off if Emoji support is disabled for the same reason as above. This only has effect after updating the page for the first time.
To summarize, it means that there’s a discrepancy between old and new WordPress installations, and that function accounts for it as a catch-all; so to alleviate confusion and general annoyance: People who use this plugin often don’t want smileys at all.
Nevertheless, you can override the [ cw_emoji_settings(), 'wp430_support' ]
callback like so (code ref):
// Adds a sanitation filter to the 'enable_emoji' setting; runs right after it's done sanitizing (priority 11).
add_filter( 'sanitize_option_enable_emoji', function( $options ) {
// Reenable the option after Emoji Settings disables it.
if ( isset( $_POST['use_smilies'] ) && '1' === $_POST['use_smilies'] )
update_option( 'use_smilies', '1' );
// Return the Emoji Settings options.
return $options;
}, 11 );
I hope this helps ?? Cheers!
-
This reply was modified 5 years, 9 months ago by Sybre Waaijer. Reason: Added POST value check for the option