WordPress.org

Make WordPress Core

Ticket #15308: 15308.patch

File 15308.patch, 2.0 KB (added by ocean90, 10 years ago)

enhancement to filosofo's patch

  • wp-includes/admin-bar.php

     
    202202        if ( empty( $actions ) )
    203203                return;
    204204
    205         $wp_admin_bar->add_menu( array( 'id' => 'new-content', 'title' => __( 'New Content' ), 'href' => '', ) );
     205        $wp_admin_bar->add_menu( array( 'id' => 'new-content', 'title' => __( 'Add New' ), 'href' => '', ) );
    206206
    207207        foreach ( $actions as $link => $action ) {
    208208                $wp_admin_bar->add_menu( array( 'parent' => 'new-content', 'id' => $action[2], 'title' => $action[0], 'href' => admin_url($link) ) );
  • wp-includes/css/admin-bar.dev.css

     
    7272        padding-right:1.5em;
    7373        line-height: 28px;
    7474}
    75 #wpadminbar .menupop ul li a span#awaiting-mod {
     75#wpadminbar ul li a span#awaiting-mod {
    7676        display: inline;
    7777        background: #aaa;
    7878        color: #fff;
     
    8383        -webkit-border-radius: 5px;
    8484        border-radius: 5px;
    8585}
    86 #wpadminbar .menupop ul li a:hover span#awaiting-mod {
     86#wpadminbar ul li a:hover span#awaiting-mod {
    8787        background: #fff;
    8888        color: #888;
    8989}
     
    101101        background:rgba(255,255,255,0.97);
    102102        border-color:rgba(0,0,0,0.1);
    103103}
    104 #wpadminbar .menupop.ab-my-account ul,
    105 #wpadminbar .menupop.ab-my-dash ul,
    106 #wpadminbar .menupop.ab-new-post ul {
    107         min-width:140px;
     104#wpadminbar .quicklinks li ul li a {
     105        min-width:160px;
    108106}
    109107#wpadminbar .menupop li {
    110108        float:none;
     
    226224        height: 28px;
    227225        padding: 0 1.15em 0 0.7em;
    228226}
    229 #wpadminbar li.ab-me > a:hover,
     227
    230228#wpadminbar li.ab-blog > a:hover {
    231229        background-position: 67% 59.8%;
    232230}
     
    243241        padding-left: 0.7em !important;
    244242        margin-top: 0 !important;
    245243}
    246 #wpadminbar li.ab-my-account > ul, #wpadminbar li.ab-bloginfo > ul {
    247         left: -7px;
    248 }
    249244#wpadminbar ul li img {
    250245        width: 16px !important;
    251246        height: 16px !important;