WordPress.org

Make WordPress Core

Changeset 9606


Ignore:
Timestamp:
11/11/08 09:39:42 (5 years ago)
Author:
azaozz
Message:

QE fixes: don't display-filter titles, show QE for newly added cats and tags, fixes #8146

Location:
trunk/wp-admin
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r9578 r9606  
    299299.button:hover, 
    300300.submit input:hover, 
    301 #edit-slug-buttons a.save:hover, 
    302301#postcustomstuff .submit input:hover { 
    303302    border-color: #535353; 
     
    315314#login form .submit input:hover, 
    316315div.dashboard-widget-submit input:hover, 
    317 #edit-slug-buttons a.save:hover, 
    318 #media-upload a.delete:hover, 
    319316#media-upload a.del-link:hover, 
    320317.ui-tabs-nav a:hover, 
  • trunk/wp-admin/css/colors-fresh.css

    r9604 r9606  
    304304.button:hover, 
    305305.submit input:hover, 
    306 #edit-slug-buttons a.save:hover, 
    307306#postcustomstuff .submit input:hover { 
    308307    border-color: #535353; 
     
    320319#login form .submit input:hover, 
    321320div.dashboard-widget-submit input:hover, 
    322 #edit-slug-buttons a.save:hover, 
    323 #media-upload a.delete:hover, 
    324321#media-upload a.del-link:hover, 
    325322.ui-tabs-nav a:hover, 
  • trunk/wp-admin/includes/post.php

    r9604 r9606  
    918918    $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 
    919919    $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n"; 
    920     $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n"; 
     920    $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n"; 
    921921    return $return; 
    922922} 
  • trunk/wp-admin/includes/template.php

    r9604 r9606  
    611611                    } 
    612612                    $out .= '<div class="hidden" id="inline_' . $tag->term_id . '">'; 
    613                     $out .= '<div class="name">' . $name . '</div>'; 
     613                    $out .= '<div class="name">' . attribute_escape($tag->name) . '</div>'; 
    614614                    $out .= '<div class="slug">' . $tag->slug . '</div></div></td>'; 
    615615                    break; 
     
    11511151        return; 
    11521152 
    1153     $title = _draft_or_post_title($post->ID); 
     1153    $title = attribute_escape($post->post_title); 
    11541154 
    11551155    echo ' 
  • trunk/wp-admin/js/categories.js

    r8988 r9606  
    88        var id = $('cat', r).attr('id'); 
    99        options[options.length] = new Option(name, id); 
     10         
     11        addAfter2( r, settings ); 
     12    } 
     13 
     14    var addAfter2 = function( x, r ) { 
     15        var t = $(r.parsed.responses[0].data); 
     16        if ( t.length == 1 ) 
     17            inlineEditTax.addEvents($(t.id)); 
    1018    } 
    1119 
     
    2028        $('#the-list').wpList( { addAfter: addAfter, delAfter: delAfter } ); 
    2129    else 
    22         $('#the-list').wpList(); 
     30        $('#the-list').wpList({ addAfter: addAfter2 }); 
    2331 
    2432    if ( jQuery('#link-category-search').size() ) { 
  • trunk/wp-admin/js/inline-edit-tax.js

    r9604 r9606  
    3838    addEvents : function(r) { 
    3939        r.each(function() { 
    40             var row = $(this); 
    41             $('a.editinline', row).click(function() { inlineEditTax.edit(this); return false; }); 
     40            $(this).find('a.editinline').click(function() { inlineEditTax.edit(this); return false; }); 
     41            $(this).find('.hide-if-no-js').removeClass('hide-if-no-js'); 
    4242        }); 
    4343    }, 
  • trunk/wp-admin/js/slug.js

    r7139 r9606  
    99    var full = jQuery('#editable-post-name-full').html(); 
    1010 
    11     b.html('<a href="" class="save">'+slugL10n.save+'</a> <a class="cancel" href="">'+slugL10n.cancel+'</a>'); 
     11    b.html('<a href="" class="save button">'+slugL10n.save+'</a> <a class="cancel" href="">'+slugL10n.cancel+'</a>'); 
    1212    b.children('.save').click(function() { 
    1313        var new_slug = e.children('input').val(); 
  • trunk/wp-admin/js/tags.js

    r8988 r9606  
    66        var id = $('tag', r).attr('id'); 
    77        options[options.length] = new Option(name, id); 
     8 
     9    } 
     10 
     11    var addAfter2 = function( x, r ) { 
     12        var t = $(r.parsed.responses[0].data); 
     13        if ( t.length == 1 ) 
     14            inlineEditTax.addEvents($(t.id)); 
    815    } 
    916 
     
    1825        $('#the-list').wpList( { addAfter: addAfter, delAfter: delAfter } ); 
    1926    else 
    20         $('#the-list').wpList(); 
     27        $('#the-list').wpList({ addAfter: addAfter2 }); 
    2128 
    2229    columns.init('tag'); 
  • trunk/wp-admin/rtl.css

    r9605 r9606  
    258258    background-position: right top; 
    259259} 
    260 #edit-slug-buttons a.save { 
     260#edit-slug-buttons a { 
    261261    margin-right: 0; 
    262262    margin-left: 4px; 
  • trunk/wp-admin/wp-admin.css

    r9604 r9606  
    349349 
    350350a.button { 
    351     padding: 4px 8px; 
     351    padding: 3px 8px; 
    352352} 
    353353 
     
    17201720#editable-post-name input { 
    17211721    width: 16em; 
    1722 } 
    1723  
    1724 #edit-slug-buttons a.save { 
    1725     padding: 6px 4px; 
    1726     margin-right: 4px; 
    1727     text-decoration: none; 
    1728     border-width: 1px; 
    1729     border-style: solid; 
    1730     -moz-border-radius: 3px; 
    1731     -khtml-border-radius: 3px; 
    1732     -webkit-border-radius: 3px; 
    1733     border-radius: 3px; 
    1734     font-weight: bold; 
    17351722} 
    17361723 
Note: See TracChangeset for help on using the changeset viewer.