Make WordPress Core

Changeset 9542


Ignore:
Timestamp:
11/06/2008 02:54:35 AM (15 years ago)
Author:
azaozz
Message:

Fix adding similar tags

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r9520 r9542  
    4242    var text = a ? jQuery(a).text() : jQuery('#newtag').val();
    4343    var newtags = jQuery('#tags-input').val();
    44     var t = text.replace( /\s*([^,]+)[\s,]*/, '$1' );
     44
     45    var t = text.replace( /\s*([^,]+).*/, '$1,' );
     46    newtags += ','
    4547
    4648    if ( newtags.indexOf(t) != -1 )
    4749        return false;
    4850
    49     newtags += ',' + text;
     51    newtags += text;
    5052
    5153    // massage
  • trunk/wp-includes/script-loader.php

    r9539 r9542  
    177177            'cancel' => __('Cancel'),
    178178        ) );
    179         $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug', 'settings-box'), '20081103' );
     179        $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug', 'settings-box'), '20081105' );
    180180        $scripts->localize( 'post', 'postL10n', array(
    181181            'tagsUsed' =>  __('Tags used on this post:'),
Note: See TracChangeset for help on using the changeset viewer.