Plugin Directory

Changeset 130452


Ignore:
Timestamp:
06/29/2009 03:47:28 PM (17 years ago)
Author:
jdub
Message:

fix version checking for real

Location:
tango-smilies/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tango-smilies/trunk/readme.txt

    r130446 r130452  
    44Requires at least: 2.8
    55Tested up to: 2.8.1
    6 Stable tag: 3.2
     6Stable tag: 3.3
    77
    88Replace the blocky default (GIF) smilies with beautiful Tango/GNOME (PNG) smilies.
     
    30301. Before -- yucky!
    31312. After -- hooray!
     32
     33== Changelog ==
     34
     35= 3.3 =
     36* As of WordPress 2.8.1-beta2, we can now use '/' in a smiley. For example: ':-/'
  • tango-smilies/trunk/tango-smilies.php

    r130446 r130452  
    44Plugin URI: http://wordpress.org/extend/plugins/tango-smilies/
    55Description: Replace the blocky default (GIF) smilies with beautiful Tango/GNOME (PNG) smilies.
    6 Version: 3.2
     6Version: 3.3
    77Author: Jeff Waugh
    88Author URI: http://bethesignal.org/
     
    3232    $plugurl = plugin_dir_url(__FILE__);
    3333    return preg_replace(
    34         "#<img src='$siteurl/wp-includes/images/smilies/#",
    35         "<img src='$plugurl/tango/",
     34        "#<img src='{$siteurl}/wp-includes/images/smilies/#",
     35        "<img src='{$plugurl}tango/",
    3636        $text
    3737    );
     
    4040
    4141function tango_smilies_init() {
    42     global $wpsmiliestrans;
     42    global $wpsmiliestrans, $wp_version;
    4343
    4444    if ( !isset($wpsmiliestrans) && get_option('use_smilies') ) {
     
    106106
    107107        // can only include smilies with "/" after 2.8.1-beta1 (see #9955)
    108         if ( version_compare($wp_version, '2.8.1-beta1', '>=') ) {
     108        if ( version_compare($wp_version, '2.8.1-beta1', '>') ) {
    109109            $wpsmiliestrans += array(
    110110              ':-/' => 'face-uncertain.png',
Note: See TracChangeset for help on using the changeset viewer.