Code Duplication    Length = 18-20 lines in 5 locations

includes/admin/class-api-keys-table.php 1 location

@@ 209-228 (lines=20) @@
206
	 *
207
	 * @param string $which
208
	 */
209
	protected function display_tablenav( $which ) {
210
		if ( 'top' === $which ) {
211
			wp_nonce_field( 'bulk-' . $this->_args['plural'] );
212
		}
213
		?>
214
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
215
216
			<div class="alignleft actions bulkactions">
217
				<?php $this->bulk_actions( $which ); ?>
218
			</div>
219
220
			<?php
221
			$this->extra_tablenav( $which );
222
			$this->pagination( $which );
223
			?>
224
225
			<br class="clear"/>
226
		</div>
227
		<?php
228
	}
229
230
	/**
231
	 * Display the key generation form

includes/admin/donors/class-donor-table.php 1 location

@@ 292-309 (lines=18) @@
289
	 * @access protected
290
	 * @since  1.8.16
291
	 */
292
	protected function display_tablenav( $which ) {
293
		if ( 'top' === $which ) {
294
			wp_nonce_field( 'bulk-' . $this->_args['plural'], '_wpnonce', false );
295
		}
296
		?>
297
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
298
			<?php if ( $this->has_items() ): ?>
299
				<div class="alignleft actions bulkactions">
300
					<?php $this->bulk_actions( $which ); ?>
301
				</div>
302
			<?php endif;
303
			$this->extra_tablenav( $which );
304
			$this->pagination( $which );
305
			?>
306
			<br class="clear" />
307
		</div>
308
		<?php
309
	}
310
311
	/**
312
	 * Retrieves the donor data from db.

includes/admin/tools/logs/class-api-requests-logs-list-table.php 1 location

@@ 209-227 (lines=19) @@
206
	 *
207
	 * @param string $which
208
	 */
209
	protected function display_tablenav( $which ) {
210
		if ( 'top' === $which ) {
211
			wp_nonce_field( 'bulk-' . $this->_args['plural'] );
212
		}
213
		?>
214
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
215
216
			<div class="alignleft actions bulkactions">
217
				<?php $this->bulk_actions( $which ); ?>
218
			</div>
219
			<?php
220
			$this->extra_tablenav( $which );
221
			$this->pagination( $which );
222
			?>
223
224
			<br class="clear"/>
225
		</div>
226
		<?php
227
	}
228
229
	/**
230
	 * Gets the meta query for the log query

includes/admin/tools/logs/class-gateway-error-logs-list-table.php 1 location

@@ 223-241 (lines=19) @@
220
	 *
221
	 * @param string $which
222
	 */
223
	protected function display_tablenav( $which ) {
224
		if ( 'top' === $which ) {
225
			wp_nonce_field( 'bulk-' . $this->_args['plural'] );
226
		}
227
		?>
228
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
229
230
			<div class="alignleft actions bulkactions">
231
				<?php $this->bulk_actions( $which ); ?>
232
			</div>
233
			<?php
234
			$this->extra_tablenav( $which );
235
			$this->pagination( $which );
236
			?>
237
238
			<br class="clear"/>
239
		</div>
240
		<?php
241
	}
242
243
	/**
244
	 * Setup the final data for the table

includes/admin/tools/logs/class-update-logs-list-table.php 1 location

@@ 160-178 (lines=19) @@
157
	 *
158
	 * @param string $which
159
	 */
160
	protected function display_tablenav( $which ) {
161
		if ( 'top' === $which ) {
162
			wp_nonce_field( 'bulk-' . $this->_args['plural'] );
163
		}
164
		?>
165
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
166
167
			<div class="alignleft actions bulkactions">
168
				<?php $this->bulk_actions( $which ); ?>
169
			</div>
170
			<?php
171
			$this->extra_tablenav( $which );
172
			$this->pagination( $which );
173
			?>
174
175
			<br class="clear"/>
176
		</div>
177
		<?php
178
	}
179
180
	/**
181
	 * Retrieve the current page number