Changeset 2010678
- Timestamp:
- 01/11/2019 04:30:14 PM (7 years ago)
- Location:
- font-emoticons/trunk
- Files:
-
- 1 added
- 4 edited
-
FontEmoticonInfo.php (modified) (2 diffs)
-
FontEmoticonsPlugin.php (modified) (1 diff)
-
font-emoticons.php (modified) (2 diffs)
-
license.txt (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
font-emoticons/trunk/FontEmoticonInfo.php
r1180231 r2010678 23 23 { 24 24 $this->m_regex = ''; 25 $is_first = true; 25 $is_first = true; 26 26 27 foreach ($textRepresentations as $smiley) 27 28 { … … 34 35 $this->m_regex .= '|'; 35 36 } 37 36 38 $this->m_regex .= preg_quote($smiley, '/'); 37 39 } -
font-emoticons/trunk/FontEmoticonsPlugin.php
r1180254 r2010678 83 83 84 84 # Disable Wordpress' own smileys 85 update_option('use_smilies', 0); 85 # 86 # NOTE: It was suggested to use "add_filter()" instead of "update_option('use_smilies', 0)" 87 # because of performance. I'm not certain about that but using a filter instead of updating 88 # an option (in the database?) on every request seems to be reasonable. 89 add_filter('option_use_smilies', '__return_false'); 86 90 87 91 if (!is_admin()) -
font-emoticons/trunk/font-emoticons.php
r1180254 r2010678 4 4 Plugin URI: https://wordpress.org/plugins/font-emoticons/ 5 5 Description: Replace the standard WP Smileys with font icons. 6 Version: 1. 4.16 Version: 1.5.0 7 7 Author: Sebastian Krysmanski 8 8 Author URI: http://manski.net … … 17 17 { 18 18 # Re-enable Wordpress smileys 19 # 20 # NOTE: Even though we now (since 1.5.0) we use a filter to disable Wordpress' 21 # smileys, we still have to reset this option back to "1" or Wordpress' smileys 22 # wont work after disabling font-emoticons. Unfortunately, Wordpress has removed 23 # the option in the UI to change this setting and I don't want the user to dive 24 # into the database to re-enable this manually if they disable font-emoticons. 25 # I know there may be cases where re-enabling this is not the right thing but I 26 # guess in the majority of all cases this is what the user wants. 19 27 update_option('use_smilies', 1); 20 28 } -
font-emoticons/trunk/readme.txt
r1180254 r2010678 1 1 === Font Emoticons === 2 2 Contributors: manski 3 Stable tag: 1.5.0 3 4 Tags: smileys, emoticons 4 5 Requires at least: 3.0.0 5 Tested up to: 4.2.26 Stable tag: 1.4.1 7 License: GPLv 2or later8 License URI: http ://www.gnu.org/licenses/gpl-2.0.html6 Tested up to: 5.0.3 7 Requires PHP: 5.6 8 License: GPLv3 or later 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 9 10 10 11 Replaces Wordpress' smileys with font-based emoticons. 11 12 12 13 == Description == 13 Replaces [Wordpress' smileys](http://codex.wordpress.org/Using_Smilies#What_Text_Do_I_Type_to_Make_Smileys.3F)(based on images) with font-based emoticons (see screenshots). Font-based emoticons have some advantages:14 Replaces Wordpress' smileys (based on images) with font-based emoticons (see screenshots). Font-based emoticons have some advantages: 14 15 15 16 * They have the same size as the surrounding text. No more distorting the heights of lines containing smileys/emoticons. They always fit the font size. 16 17 * They have the same color as the surrounding text. 18 19 *Note:* This plugin was developed when Wordpress was still using ["pixel images"](http://codex.wordpress.org/Using_Smilies#What_Text_Do_I_Type_to_Make_Smileys.3F) as emoticons. The current version of Wordpress uses scalable vector images (SVG) - so they won't distort your line heights anymore and look crisp on any size. This makes this plugin less useful than it once was - it now comes down to personal preference whether to use it. 17 20 18 21 The following emoticons are supported: … … 70 73 71 74 == Changelog == 75 76 = 1.5.0 = 77 * Change: Font-Emoticons is now hosted as Git repo on GitHub. (Thus, the issue numbering will reset.) 78 * Change: font-emoticons now uses a (hopefully) a better way to disable Wordpress' own emoticons. 72 79 73 80 = 1.4.1 =
Note: See TracChangeset
for help on using the changeset viewer.