Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/862 Search form moved outside of the filter form #878

Merged
merged 1 commit into from
Apr 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions includes/pull-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ function dashboard() {
<?php else : ?>
<?php $connection_list_table->views(); ?>

<?php $connection_list_table->search_box( esc_html__( 'Search', 'distributor' ), 'post' ); ?>

<form id="posts-filter" class="status-<?php echo ( ! empty( $_GET['status'] ) ) ? esc_attr( $_GET['status'] ) : 'new'; // @codingStandardsIgnoreLine Nonce not needed. ?>" method="get">
<?php if ( ! empty( $connection_list_table->connection_objects ) ) : ?>
<input type="hidden" name="connection_type" value="<?php echo esc_attr( $connection_type ); ?>">
Expand All @@ -548,8 +550,6 @@ function dashboard() {

<input type="hidden" name="page" value="pull">

<?php $connection_list_table->search_box( esc_html__( 'Search', 'distributor' ), 'post' ); ?>

<?php $connection_list_table->display(); ?>
</form>
<?php endif; ?>
Expand Down