WordPress.org

Make WordPress Core

Ticket #33936: 33936.patch

File 33936.patch, 2.3 KB (added by PranaliPatel, 5 years ago)

Alignment issue patch

  • src/wp-admin/css/admin-menu.css

     
    531531        z-index: 26;
    532532}
    533533
     534#adminmenu .update-dashboard {
     535    margin: -1px 0 0 2px;
     536}
     537
    534538#adminmenu li .awaiting-mod span,
    535539#adminmenu li span.update-plugins span {
    536540        display: block;
  • src/wp-admin/menu.php

     
    3838                $cap = 'update_plugins';
    3939        else
    4040                $cap = 'update_themes';
    41         $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), $cap, 'update-core.php');
     41        $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins update-dashboard count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), $cap, 'update-core.php');
    4242        unset( $cap );
    4343}
    4444
  • src/wp-admin/network/menu.php

     
    1414
    1515$update_data = wp_get_update_data();
    1616if ( $update_data['counts']['total'] ) {
    17         $submenu['index.php'][10] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . "</span></span>" ), 'update_core', 'update-core.php' );
     17        $submenu['index.php'][10] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins update-dashboard count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . "</span></span>" ), 'update_core', 'update-core.php' );
    1818} else {
    1919        $submenu['index.php'][10] = array( __( 'Updates' ), 'update_core', 'update-core.php' );
    2020}