Ticket #18724: 18724.patch
File 18724.patch, 5.8 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/plugin-install.php
119 119 function install_search_form(){ 120 120 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 121 121 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; 122 123 ?><form id="search-plugins" method="get" action=""> 124 <input type="hidden" name="tab" value="search" /> 125 <select name="type" id="typeselector"> 126 <option value="term"<?php selected('term', $type) ?>><?php _e('Term'); ?></option> 127 <option value="author"<?php selected('author', $type) ?>><?php _e('Author'); ?></option> 128 <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option> 129 </select> 130 <input type="text" name="s" value="<?php echo esc_attr($term) ?>" /> 131 <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label> 132 <?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?> 133 </form><?php 122 ?> 123 <input type="hidden" name="tab" value="search" /> 124 <select name="type" id="typeselector"> 125 <option value="term"<?php selected('term', $type) ?>><?php _e('Term'); ?></option> 126 <option value="author"<?php selected('author', $type) ?>><?php _e('Author'); ?></option> 127 <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option> 128 </select> 129 <input type="text" name="s" value="<?php echo esc_attr($term) ?>" /> 130 <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label> 131 <?php 132 submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); 134 133 } 135 134 136 135 /** -
wp-admin/includes/class-wp-plugin-install-list-table.php
112 112 113 113 function display_tablenav( $which ) { 114 114 if ( 'top' == $which ) { ?> 115 <div class="tablenav top"> 116 <div class="alignleft actions"> 117 <?php do_action( 'install_plugins_table_header' ); ?> 115 <form id="search-plugins" method="get" action=""> 116 <div class="tablenav top"> 117 <div class="alignleft actions"> 118 <?php do_action( 'install_plugins_table_header' ); ?> 119 </div> 120 <?php $this->pagination( $which ); ?> 121 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 122 <br class="clear" /> 118 123 </div> 119 <?php $this->pagination( $which ); ?> 120 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 121 <br class="clear" /> 122 </div> 124 </form> 123 125 <?php } else { ?> 124 126 <div class="tablenav bottom"> 125 127 <?php $this->pagination( $which ); ?> -
wp-admin/includes/class-wp-theme-install-list-table.php
130 130 131 131 // wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); 132 132 ?> 133 <div class="tablenav top themes"> 134 <div class="alignleft actions"> 135 <?php do_action( 'install_themes_table_header' ); ?> 133 <form id="search-themes" method="get" action=""> 134 <div class="tablenav top themes"> 135 <div class="alignleft actions"> 136 <?php do_action( 'install_themes_table_header' ); ?> 137 </div> 138 139 <?php $this->pagination( 'top' ); ?> 140 141 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 142 <br class="clear" /> 136 143 </div> 137 <?php $this->pagination( 'top' ); ?> 138 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 139 <br class="clear" /> 140 </div> 144 </form> 141 145 142 146 <div id="availablethemes"> 143 147 <?php $this->display_rows_or_placeholder(); ?> … … 148 152 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading list-ajax-loading" alt="" /> 149 153 <br class="clear" /> 150 154 </div> 155 151 156 <?php 152 157 } 153 158 -
wp-admin/includes/theme-install.php
55 55 ?> 56 56 <p class="install-help"><?php _e('Search for themes by keyword, author, or tag.') ?></p> 57 57 58 <form id="search-themes" method="get" action=""> 59 <input type="hidden" name="tab" value="search" /> 60 <select name="type" id="typeselector"> 61 <option value="term" <?php selected('term', $type) ?>><?php _e('Term'); ?></option> 62 <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> 63 <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> 64 </select> 65 <input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" /> 66 <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?> 67 </form> 68 <?php 58 <input type="hidden" name="tab" value="search" /> 59 <select name="type" id="typeselector"> 60 <option value="term" <?php selected('term', $type) ?>><?php _e('Term'); ?></option> 61 <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> 62 <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option> 63 </select> 64 <input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" /> 65 <?php 66 submit_button( __( 'Search' ), 'button', 'search', false ); 69 67 } 70 68 71 69 /**