bsr-settings.php
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Displays the main "Settings" tab.
*
* @link http://expandedfronts.com/better-search-replace/
* @since 1.1
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/templates
*/
// Prevent direct/unauthorized access.
if ( ! defined( 'BSR_PATH' ) ) exit;
// Other settings.
$page_size = get_option( 'bsr_page_size' ) ? absint( get_option( 'bsr_page_size' ) ) : 20000;
?>
<?php settings_fields( 'bsr_settings_fields' ); ?>
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row" valign="top">
<?php _e( 'Max Page Size', 'better-search-replace' ); ?>
</th>
<td>
<div id="bsr-page-size-slider" class="bsr-slider"></div>
<br><span id="bsr-page-size-info"><?php _e( 'Current Setting: ', 'better-search-replace' ); ?></span><span id="bsr-page-size-value"><?php echo $page_size; ?></span>
<input id="bsr_page_size" type="hidden" name="bsr_page_size" value="<?php echo $page_size; ?>" />
<p class="description"><?php _e( 'If you\'re noticing timeouts or getting a white screen while running a search replace, try decreasing this value.', 'better-search-replace' ); ?></p>
</td>
</tr>
</tbody>
</table>
<?php submit_button(); ?>