WordPress.org

Make WordPress Core

Ticket #16549: 16549.3.diff

File 16549.3.diff, 394 bytes (added by garyc40, 5 years ago)

using $_SERVER['REQUEST_URI'] makes more sense

  • wp-admin/plugins.php

    diff --git wp-admin/plugins.php wp-admin/plugins.php
    index 0c36bbd..c4c404a 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( $_SERVER['REQUEST_URI'] ); ?>"> 
    404404 
    405405<?php $wp_list_table->search_box( __( 'Search Plugins' ), 'plugin' ); ?> 
    406406