Changeset 3314656
- Timestamp:
- 06/19/2025 01:02:34 PM (6 months ago)
- Location:
- businesspress/trunk
- Files:
-
- 1 added
- 5 edited
-
businesspress-settings.class.php (modified) (1 diff)
-
businesspress.php (modified) (6 diffs)
-
css/fv-search.css (modified) (1 diff)
-
fv-search.php (modified) (4 diffs)
-
plugins/fv-limit-search.php (added)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
businesspress/trunk/businesspress-settings.class.php
r3284756 r3314656 549 549 'Enable domain name', 550 550 sprintf( __('Include domain name of searched website in the search results', 'businesspress' ), plugin_dir_path(__FILE__).'fv-search.php' ) ); 551 552 $this->admin_show_setting( 553 'businesspress-limit-search-requests-by-ip', 554 'limit-search-requests-by-ip', 555 __('Limit Search requests by IP', 'businesspress' ), 556 __('Allows up to 10 search requests per minute per IP', 'businesspress' ) 557 ); 551 558 ?> 552 559 </table> -
businesspress/trunk/businesspress.php
r3298557 r3314656 4 4 Plugin URI: http://www.foliovision.com 5 5 Description: This plugin secures your site 6 Version: 1.4 6 Version: 1.4.1 7 7 Author: Foliovision 8 8 Author URI: http://foliovision.com … … 15 15 16 16 17 const VERSION = '1.4 ';17 const VERSION = '1.4.1'; 18 18 19 19 … … 213 213 */ 214 214 add_action( 'pre_get_posts', array( $this, 'hide_password_protected_posts' ) ); 215 216 /** 217 * Change "Site Health Status" label to indicate that only BusinessPress admins see this 218 */ 219 add_filter( 'gettext', array( $this, 'admin_site_health_title_change' ), 100, 3 ); 215 220 216 221 /** … … 289 294 } 290 295 291 292 296 function admin_site_health_title_change( $translation, $text, $domain ) { 297 if ( $this->get_setting('restrictions_enabled') ) { 298 if ( 'Site Health Status' === $text ) { 299 return $translation . '<small>(BusinessPress admins only)</small>'; 300 } 301 } 302 303 return $translation; 304 } 293 305 294 306 function admin_style() { … … 1125 1137 $this->aOptions['disable-user-login-scanning'] = isset($_POST['businesspress-disable-user-login-scanning']) && $_POST['businesspress-disable-user-login-scanning'] == 1 ? true : false; 1126 1138 1139 $this->aOptions['limit-search-requests-by-ip'] = isset($_POST['businesspress-limit-search-requests-by-ip']) && $_POST['businesspress-limit-search-requests-by-ip'] == 1 ? true : false; 1140 1127 1141 $this->aOptions['login-lockout'] = isset($_POST['businesspress-login-lockout']) && $_POST['businesspress-login-lockout'] == 1 ? true : false; 1128 1142 … … 1352 1366 1353 1367 include( dirname(__FILE__).'/plugins/fv-user-login-sessions.php' ); 1368 1369 if ( $this->get_setting('limit-search-requests-by-ip') ) { 1370 include( dirname(__FILE__).'/plugins/fv-limit-search.php' ); 1371 } 1354 1372 1355 1373 include( dirname(__FILE__) . '/plugins/simple-history-clean-up.php' ); -
businesspress/trunk/css/fv-search.css
r3076918 r3314656 98 98 margin-bottom: 0; 99 99 } 100 101 /* Hide common entry footer content elements */ 102 .entry-meta { 103 display: none; 104 } -
businesspress/trunk/fv-search.php
r3284756 r3314656 12 12 13 13 var $iSearch_max_num_pages = 0; 14 15 // Used if "Limit Search requests by IP" settings is enabled and IP address makes too many search requests. 16 var $rate_limited = false; 14 17 15 18 function __construct() { … … 53 56 $objPost->comment_status = 'closed'; 54 57 $objPost->ping_status = 'closed'; 58 $objPost->post_author = 0; 55 59 56 60 $wp_query->posts = 1; … … 228 232 } 229 233 234 } else if ( $this->rate_limited ) { 235 $html .= '<div class="businesspress-search-no-result"><p>'.__('Too many search requests. Please wait a minute before trying again.', 'businesspress').'</p></div>'; 236 230 237 } else { 231 238 $html .= '<div class="businesspress-search-no-result"><p>'.__('Your search did not match any documents.','businesspress').'</p>'; … … 287 294 } 288 295 296 global $FV_Search; 289 297 $FV_Search = new FV_Search; 290 298 -
businesspress/trunk/readme.txt
r3298557 r3314656 101 101 102 102 == Changelog == 103 104 = 1.4.1 - 2025-06-19 = 105 106 * Site Health Status: It only shows to allowed admins, if restrictions are on, so make a note of it 103 107 104 108 = 1.4 - 2025-05-22 =
Note: See TracChangeset
for help on using the changeset viewer.