WordPress.org

Make WordPress Core

Ticket #7552: remove-pagenow.diff

File remove-pagenow.diff, 4.9 KB (added by Viper007Bond, 6 years ago)

Remove $pagenow from the search form actions

  • wp-admin/categories.php

     
    142142<div class="wrap"> 
    143143 
    144144<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> 
    145 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     145<form class="search-form" action="" method="get"> 
    146146<p class="search-box"> 
    147147        <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label> 
    148148        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
  • wp-admin/edit-comments.php

     
    173173</form> 
    174174</div> 
    175175 
    176 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     176<form class="search-form" action="" method="get"> 
    177177<p class="search-box"> 
    178178        <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label> 
    179179        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
  • wp-admin/edit-link-categories.php

     
    7878<div class="wrap"> 
    7979 
    8080<ul class="subsubsub"><li><a class="current"><br /></a></li></ul> 
    81 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     81<form class="search-form" action="" method="get"> 
    8282<p class="search-box"> 
    8383        <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label> 
    8484        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
  • wp-admin/edit-pages.php

     
    162162?> 
    163163</ul> 
    164164 
    165 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     165<form class="search-form" action="" method="get"> 
    166166<p class="search-box"> 
    167167        <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label> 
    168168        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
  • wp-admin/edit-tags.php

     
    145145<div class="wrap"> 
    146146 
    147147<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> 
    148 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     148<form class="search-form" action="" method="get"> 
    149149<p class="search-box"> 
    150150        <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label> 
    151151        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
  • wp-admin/edit.php

     
    197197</form> 
    198198</div> 
    199199 
    200 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     200<form class="search-form" action="" method="get"> 
    201201<p class="search-box"> 
    202202        <label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label> 
    203203        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
  • wp-admin/link-manager.php

     
    121121</form></div> 
    122122 
    123123<ul class="subsubsub"><li><a class="current"><br /></a></li></ul> 
    124 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     124<form class="search-form" action="" method="get"> 
    125125<p class="search-box"> 
    126126        <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label> 
    127127        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
  • wp-admin/upload.php

     
    252252<?php } // ! is_singular ?> 
    253253</form></div> 
    254254 
    255 <form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     255<form class="search-form" action="" method="get"> 
    256256<p class="search-box"> 
    257257        <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label> 
    258258        <input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />