Changeset 9542
- Timestamp:
- 11/06/2008 02:54:35 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post.js
r9520 r9542 42 42 var text = a ? jQuery(a).text() : jQuery('#newtag').val(); 43 43 var newtags = jQuery('#tags-input').val(); 44 var t = text.replace( /\s*([^,]+)[\s,]*/, '$1' ); 44 45 var t = text.replace( /\s*([^,]+).*/, '$1,' ); 46 newtags += ',' 45 47 46 48 if ( newtags.indexOf(t) != -1 ) 47 49 return false; 48 50 49 newtags += ',' +text;51 newtags += text; 50 52 51 53 // massage -
trunk/wp-includes/script-loader.php
r9539 r9542 177 177 'cancel' => __('Cancel'), 178 178 ) ); 179 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug', 'settings-box'), '2008110 3' );179 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug', 'settings-box'), '20081105' ); 180 180 $scripts->localize( 'post', 'postL10n', array( 181 181 'tagsUsed' => __('Tags used on this post:'),
Note: See TracChangeset
for help on using the changeset viewer.