WordPress.org

Make WordPress Core

Ticket #9527: 9527-plugin.php.diff

File 9527-plugin.php.diff, 1.1 KB (added by mtekk, 5 years ago)

Fixes the broken All link since we now remember the last active page

  • plugins.php

     
    439439<?php 
    440440$status_links = array(); 
    441441$class = ( 'all' == $status ) ? ' class="current"' : ''; 
    442 $status_links[] = "<li><a href='plugins.php' $class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_all_plugins ), number_format_i18n( $total_all_plugins ) ) . '</a>'; 
     442$status_links[] = "<li><a href='plugins.php?plugin_status=all' $class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_all_plugins ), number_format_i18n( $total_all_plugins ) ) . '</a>'; 
    443443if ( ! empty($active_plugins) ) { 
    444444        $class = ( 'active' == $status ) ? ' class="current"' : ''; 
    445445        $status_links[] = "<li><a href='plugins.php?plugin_status=active' $class>" . sprintf( _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', $total_active_plugins ), number_format_i18n( $total_active_plugins ) ) . '</a>';