Make WordPress Core

Changeset 12236


Ignore:
Timestamp:
11/20/2009 01:54:12 AM (15 years ago)
Author:
azaozz
Message:

Do not show entities when inserting newly added category in the parents dropdown, props aldenta, fixes #11182

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/categories.dev.js

    r11676 r12236  
    77        var name, id;
    88
    9         name = $("<span>" + $('name', r).text() + "</span>").html();
     9        name = $("<span>" + $('name', r).text() + "</span>").text();
    1010        id = $('cat', r).attr('id');
    1111        options[options.length] = new Option(name, id);
  • trunk/wp-admin/js/categories.js

    r11676 r12236  
    1 jQuery(document).ready(function(d){var b=false,e,c,a;if(document.forms.addcat.category_parent){b=document.forms.addcat.category_parent.options}e=function(h,g){var f,i;f=d("<span>"+d("name",h).text()+"</span>").html();i=d("cat",h).attr("id");b[b.length]=new Option(f,i)};a=function(g,f){var i=d("cat",g).attr("id"),h;for(h=0;h<b.length;h++){if(i==b[h].value){b[h]=null}}};c=function(f){if("undefined"!=showNotice){return showNotice.warn()?f:false}return f};if(b){d("#the-list").wpList({addAfter:e,delBefore:c,delAfter:a})}else{d("#the-list").wpList({delBefore:c})}d('.delete a[class^="delete"]').click(function(){return false})});
     1jQuery(document).ready(function(d){var b=false,e,c,a;if(document.forms.addcat.category_parent){b=document.forms.addcat.category_parent.options}e=function(h,g){var f,i;f=d("<span>"+d("name",h).text()+"</span>").text();i=d("cat",h).attr("id");b[b.length]=new Option(f,i)};a=function(g,f){var i=d("cat",g).attr("id"),h;for(h=0;h<b.length;h++){if(i==b[h].value){b[h]=null}}};c=function(f){if("undefined"!=showNotice){return showNotice.warn()?f:false}return f};if(b){d("#the-list").wpList({addAfter:e,delBefore:c,delAfter:a})}else{d("#the-list").wpList({delBefore:c})}d('.delete a[class^="delete"]').click(function(){return false})});
  • trunk/wp-includes/script-loader.php

    r12234 r12236  
    225225        ) );
    226226
    227         $scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20090623' );
     227        $scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20091119' );
    228228        $scripts->add_data( 'admin-categories', 'group', 1 );
    229229
Note: See TracChangeset for help on using the changeset viewer.