WordPress.org

Make WordPress Core

Ticket #16549: 16549.2.diff

File 16549.2.diff, 435 bytes (added by garyc40, 3 years ago)

remove status query var when search plugins

  • wp-admin/plugins.php

    diff --git wp-admin/plugins.php wp-admin/plugins.php
    index 0c36bbd..a9c4cf6 100644
    if ( $s ) 
    400400 
    401401<?php $wp_list_table->views(); ?> 
    402402 
    403 <form method="post" action=""> 
     403<form method="post" action="<?php echo esc_attr( remove_query_arg( array( 'activate', 'deactivate', 'deleted' ) ) ); ?>"> 
    404404 
    405405<?php $wp_list_table->search_box( __( 'Search Plugins' ), 'plugin' ); ?> 
    406406