Changeset 1609668
- Timestamp:
- 03/07/2017 11:01:27 AM (9 years ago)
- Location:
- disable-emojis-polyfill/trunk
- Files:
-
- 2 edited
-
disable-emojis-polyfill.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disable-emojis-polyfill/trunk/disable-emojis-polyfill.php
r1608681 r1609668 12 12 * Plugin URI: https://wordpress.org/plugins/disable-emojis-polyfill/ 13 13 * Description: Disable WordPress Emojis backwards compatibility. 14 * Version: 1.0. 014 * Version: 1.0.1 15 15 * Author: Sérgio 'wherd' Leal 16 16 * License: GPL2 … … 41 41 * 42 42 * @since 1.0.0 43 * @since 1.0.1 - load textdoamin 43 44 * 44 45 * @see https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/default-filters.php 45 46 */ 46 47 function wd_disable_emojis() { 48 // Load plugin textdomain. 49 load_plugin_textdomain( 'disable-emojis-polyfill', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 50 47 51 // Disable from printing the inline Emoji detection style and script. 48 52 remove_action( 'wp_print_styles', 'print_emoji_styles' ); … … 74 78 * 75 79 * @since 1.0.0 80 * @since 1.0.1 - fix variable name typo 76 81 * 77 82 * @see https://developer.wordpress.org/reference/hooks/tiny_mce_plugins/ … … 81 86 */ 82 87 function wd_disable_emojis_tinymce( $plugins ) { 83 return is_array( $plugins ) ? array_diff( $ result, array( 'wpemoji' ) ) : $plugins;88 return is_array( $plugins ) ? array_diff( $plugins, array( 'wpemoji' ) ) : $plugins; 84 89 } 85 90 endif; -
disable-emojis-polyfill/trunk/readme.txt
r1609606 r1609668 5 5 Requires at least: 4.6 6 6 Tested up to: 4.7 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 35 35 * Initial release. 36 36 37 = 1.0.1 = 38 * Fix bug on `tiny_mce_plugins` filter 39 * Load textdomain 40 37 41 == Frequently Asked Questions == 38 42
Note: See TracChangeset
for help on using the changeset viewer.