Search Regex - Version 1.4.15

Version Description

  • Minor refresh
Download this release

Release Info

Developer johnny5
Plugin Icon 128x128 Search Regex
Version 1.4.15
Comparing to
See all releases

Code changes from version 1.4.14 to 1.4.15

README.md ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ search-regex
2
+ ============
3
+
4
+ Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
models/search.php CHANGED
@@ -73,7 +73,7 @@ class Search
73
  return __( "No search pattern", 'search-regex' );
74
  }
75
 
76
- function get_searches()
77
  {
78
  global $search_regex_searches;
79
  if( !is_array( $search_regex_searches))
@@ -100,7 +100,7 @@ class Search
100
  return $search_regex_searches;
101
  }
102
 
103
- function valid_search( $class ) {
104
  $classes = Search::get_searches();
105
  foreach ( $classes AS $item ) {
106
  if ( strcasecmp( get_class( $item ), $class ) == 0 )
73
  return __( "No search pattern", 'search-regex' );
74
  }
75
 
76
+ static function get_searches()
77
  {
78
  global $search_regex_searches;
79
  if( !is_array( $search_regex_searches))
100
  return $search_regex_searches;
101
  }
102
 
103
+ static function valid_search( $class ) {
104
  $classes = Search::get_searches();
105
  foreach ( $classes AS $item ) {
106
  if ( strcasecmp( get_class( $item ), $class ) == 0 )
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: johnny5
3
  Donate link: http://urbangiraffe.com/about/support/
4
  Tags: search, regex, regular expression, admin, post, page
5
  Requires at least: 2.0
6
- Tested up to: 3.4
7
  Stable tag: trunk
8
 
9
  Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
@@ -19,8 +19,8 @@ Why would you want this? The primary reason for the plugin was to aid in relocat
19
  Search Regex is available in the following languages:
20
 
21
  * English
22
- * Arabic, thanks to ()[]
23
- * Belarussian, thanks to (Marcis Gasuns)[http://www.fatcow.com]
24
 
25
  == Installation ==
26
 
@@ -45,6 +45,12 @@ Full documentation can be found on the [Search Regex Page](http://urbangiraffe.c
45
 
46
  == Changelog ==
47
 
 
 
 
 
 
 
48
  = 1.4.13 =
49
  * Code cleanup
50
 
3
  Donate link: http://urbangiraffe.com/about/support/
4
  Tags: search, regex, regular expression, admin, post, page
5
  Requires at least: 2.0
6
+ Tested up to: 4.1
7
  Stable tag: trunk
8
 
9
  Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
19
  Search Regex is available in the following languages:
20
 
21
  * English
22
+ * Arabic, thanks to R.SN
23
+ * Belarussian, thanks to Marcis Gasuns
24
 
25
  == Installation ==
26
 
45
 
46
  == Changelog ==
47
 
48
+ = 1.4.15 =
49
+ * Minor refresh
50
+
51
+ = 1.4.14 =
52
+ * WP 3.5 compat
53
+
54
  = 1.4.13 =
55
  * Code cleanup
56
 
search-regex.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Search Regex
4
  Plugin URI: http://urbangiraffe.com/plugins/search-regex
5
  Description: Adds search & replace functionality across posts, pages, comments, and meta-data, with full regular expression support
6
  Author: John Godley
7
- Version: 1.4.13
8
  Author URI: http://urbangiraffe.com/
9
  */
10
 
4
  Plugin URI: http://urbangiraffe.com/plugins/search-regex
5
  Description: Adds search & replace functionality across posts, pages, comments, and meta-data, with full regular expression support
6
  Author: John Godley
7
+ Version: 1.4.15
8
  Author URI: http://urbangiraffe.com/
9
  */
10
 
searches/post_content.php CHANGED
@@ -7,7 +7,7 @@ class SearchPostContent extends Search
7
  global $wpdb;
8
 
9
  $results = array ();
10
- $posts = $wpdb->get_results ($wpdb->prepare( "SELECT ID, post_content, post_title FROM {$wpdb->posts} WHERE post_status != 'inherit' ORDER BY ID $orderby" ) );
11
 
12
  if ( $limit > 0 )
13
  $sql .= $wpdb->prepare( " LIMIT %d,%d", $offset, $limit );
7
  global $wpdb;
8
 
9
  $results = array ();
10
+ $posts = $wpdb->get_results ( "SELECT ID, post_content, post_title FROM {$wpdb->posts} WHERE post_status != 'inherit' AND post_type IN ('post','page') ORDER BY ID $orderby" );
11
 
12
  if ( $limit > 0 )
13
  $sql .= $wpdb->prepare( " LIMIT %d,%d", $offset, $limit );