Plugin Directory

Changeset 2010678


Ignore:
Timestamp:
01/11/2019 04:30:14 PM (7 years ago)
Author:
manski
Message:

Updated to font-emoticons 1.5.0

Location:
font-emoticons/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • font-emoticons/trunk/FontEmoticonInfo.php

    r1180231 r2010678  
    2323    {
    2424        $this->m_regex = '';
    25         $is_first    = true;
     25        $is_first = true;
     26
    2627        foreach ($textRepresentations as $smiley)
    2728        {
     
    3435                $this->m_regex .= '|';
    3536            }
     37
    3638            $this->m_regex .= preg_quote($smiley, '/');
    3739        }
  • font-emoticons/trunk/FontEmoticonsPlugin.php

    r1180254 r2010678  
    8383
    8484        # 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');
    8690
    8791        if (!is_admin())
  • font-emoticons/trunk/font-emoticons.php

    r1180254 r2010678  
    44Plugin URI: https://wordpress.org/plugins/font-emoticons/
    55Description: Replace the standard WP Smileys with font icons.
    6 Version: 1.4.1
     6Version: 1.5.0
    77Author: Sebastian Krysmanski
    88Author URI: http://manski.net
     
    1717{
    1818    # 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.
    1927    update_option('use_smilies', 1);
    2028}
  • font-emoticons/trunk/readme.txt

    r1180254 r2010678  
    11=== Font Emoticons ===
    22Contributors: manski
     3Stable tag: 1.5.0
    34Tags: smileys, emoticons
    45Requires at least: 3.0.0
    5 Tested up to: 4.2.2
    6 Stable tag: 1.4.1
    7 License: GPLv2 or later
    8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     6Tested up to: 5.0.3
     7Requires PHP: 5.6
     8License: GPLv3 or later
     9License URI: https://www.gnu.org/licenses/gpl-3.0.html
    910
    1011Replaces Wordpress' smileys with font-based emoticons.
    1112
    1213== 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:
     14Replaces Wordpress' smileys (based on images) with font-based emoticons (see screenshots). Font-based emoticons have some advantages:
    1415
    1516* 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.
    1617* 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.
    1720
    1821The following emoticons are supported:
     
    7073
    7174== 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.
    7279
    7380= 1.4.1 =
Note: See TracChangeset for help on using the changeset viewer.