| | 158 | * Show a username form for the favorites page. |
| | 159 | * |
| | 160 | * @since 3.5.0 |
| | 161 | * |
| | 162 | * @param int $page The current paged number in the display table |
| | 163 | */ |
| | 164 | function install_plugins_favorites( $page = 1 ) { |
| | 165 | $value = isset( $_REQUEST['user'] ) ? stripslashes( $_REQUEST['user'] ) : ''; |
| | 166 | ?> |
| | 167 | <h4><?php _e('Find Favorite Plugins for a WordPress.org username:'); ?></h4> |
| | 168 | <form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('plugin-install.php?tab=favorites'); ?>"> |
| | 169 | <label class="screen-reader-text" for="user"><?php _e('WordPress.org username'); ?></label> |
| | 170 | <input type="text" id="user" name="user" value="<?php echo esc_attr($value); ?>" /> |
| | 171 | <input type="submit" class="button" value="<?php esc_attr_e('Find Favorites'); ?>" /> |
| | 172 | </form> |
| | 173 | <?php |
| | 174 | } |
| | 175 | add_action('install_plugins_favorites', 'install_plugins_favorites', 10, 1); |
| | 176 | |
| | 177 | /** |
| | 178 | * Show a username form for the favorites page |
| | 179 | * @since 3.5.0 |
| | 180 | * |
| | 181 | * @param string $page |
| | 182 | */ |
| | 183 | function install_plugins_favories( $page = 1 ) { |
| | 184 | $value = isset( $_REQUEST['user'] ) ? stripslashes( $_REQUEST['user'] ) : ''; |
| | 185 | ?> |
| | 186 | <h4><?php _e('Find Favorite Plugins for a WordPress.org username:') ?></h4> |
| | 187 | <form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('plugin-install.php?tab=favorites') ?>"> |
| | 188 | <label class="screen-reader-text" for="user"><?php _e('WordPress.org username'); ?></label> |
| | 189 | <input type="text" id="user" name="user" value="<?php echo esc_attr($value); ?>" /> |
| | 190 | <input type="submit" class="button" value="<?php esc_attr_e('Find Favorites') ?>" /> |
| | 191 | </form> |
| | 192 | <?php |
| | 193 | } |
| | 194 | add_action('install_plugins_favorites', 'install_plugins_favories', 10, 1); |
| | 195 | |
| | 196 | /** |
| | 197 | * Show a username form for the favorites page |
| | 198 | * @since 3.5.0 |
| | 199 | * |
| | 200 | * @param string $page |
| | 201 | */ |
| | 202 | function install_plugins_favories( $page = 1 ) { |
| | 203 | $value = isset( $_REQUEST['user'] ) ? stripslashes( $_REQUEST['user'] ) : ''; |
| | 204 | ?> |
| | 205 | <h4><?php _e('Find Favorite Plugins for a WordPress.org username:') ?></h4> |
| | 206 | <form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('plugin-install.php?tab=favorites') ?>"> |
| | 207 | <label class="screen-reader-text" for="user"><?php _e('WordPress.org username'); ?></label> |
| | 208 | <input type="text" id="user" name="user" value="<?php echo esc_attr($value); ?>" /> |
| | 209 | <input type="submit" class="button" value="<?php esc_attr_e('Find Favorites') ?>" /> |
| | 210 | </form> |
| | 211 | <?php |
| | 212 | } |
| | 213 | add_action('install_plugins_favorites', 'install_plugins_favories', 10, 1); |
| | 214 | |
| | 215 | /** |