Search Everything - Version 4.2

Version Description

Download this release

Release Info

Developer dancameron
Plugin Icon wp plugin Search Everything
Version 4.2
Comparing to
See all releases

Code changes from version 4.1 to 4.2

SE-Admin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Class SearchEverythingAdmin {
4
 
5
- var $version = '4.1';
6
 
7
  function SearchEverythingAdmin() {
8
 
@@ -23,31 +23,34 @@ Class SearchEverythingAdmin {
23
 
24
  //build admin interface
25
  function SE4_option_page() {
26
- global $wpdb, $table_prefix;
27
 
28
  if($_POST['action'] == "save") {
29
  echo "<div class=\"updated fade\" id=\"limitcatsupdatenotice\"><p>" . __("Search Everything Options <strong>Updated</strong>.") . "</p></div>";
30
 
31
  $new_options = array(
32
- 'SE4_exclude_categories' => $_POST["exclude_categories"],
33
  'SE4_exclude_categories_list' => $_POST["exclude_categories_list"],
34
- 'SE4_exclude_posts' => $_POST["exclude_posts"],
35
- 'SE4_exclude_posts_list' => $_POST["exclude_posts_list"],
36
- 'SE4_use_page_search' => $_POST["search_pages"],
37
- 'SE4_use_comment_search' => $_POST["search_comments"],
 
38
  'SE4_approved_comments_only' => $_POST["appvd_comments"],
39
- 'SE4_approved_pages_only' => $_POST["appvd_pages"],
40
- 'SE4_use_excerpt_search' => $_POST["search_excerpt"],
41
- 'SE4_use_draft_search' => $_POST["search_drafts"],
42
- 'SE4_use_attachment_search' => $_POST["search_attachments"],
43
- 'SE4_use_metadata_search' => $_POST["search_metadata"]
44
  );
45
 
 
46
  update_option("SE4_options", $new_options);
47
 
48
  }
49
 
50
  $options = get_option('SE4_options');
 
51
 
52
  ?>
53
 
@@ -69,7 +72,7 @@ Class SearchEverythingAdmin {
69
 
70
  <p><input type="checkbox" id="exclude_categories" name="exclude_categories"
71
  value="true" <?php if($options['SE4_exclude_categories'] == 'true') { echo 'checked="true"'; } ?> />
72
- <label for="exclude_categories"><?php _e('Exclude Categories <strong><small>(Wordpress 2.2 Only)</strong></small>','SearchEverything'); ?></label><br />
73
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label for="exclude_categories_list" class="SE_text_label"><?php _e('Comma separated category IDs (example: 1, 4)','SearchEverything'); ?></label><br />
74
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" size="50" class="SE_text_input" id="exclude_categories_list" name="exclude_categories_list" value="<?php echo $options['SE4_exclude_categories_list'];?>" /></p>
75
 
@@ -78,7 +81,14 @@ Class SearchEverythingAdmin {
78
  <label for="search_pages"><?php _e('Search every page (non-password protected)','SearchEverything'); ?></label></p>
79
  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" class="SE_text_input" id="appvd_pages" name="appvd_pages" value="true" <?php if($options['SE4_approved_pages_only'] == 'true') { echo 'checked="true"'; } ?>
80
  <label for="appvd_pages"><?php _e('Search approved pages only?','SearchEverything'); ?></label></p>
81
-
 
 
 
 
 
 
 
82
  <p><input type="checkbox" id="search_comments" name="search_comments"
83
  value="true" <?php if($options['SE4_use_comment_search'] == 'true') { echo 'checked="true"'; } ?> />
84
  <label for="search_comments"><?php _e('Search every comment','SearchEverything'); ?></label></p>
@@ -129,18 +139,16 @@ Class SearchEverythingAdmin {
129
  <li><a href="http://green-beast.com/">Mike Cherim</a></li>
130
  <li><a href="http://blog.saddey.net/">Saddy</a></li>
131
  <li><a href="http://www.reaper-x.com/">Reaper</a></li>
132
- <li><a href="http://http://beyn.org/">Barış Ünver</a> (localization support)</li>
133
  <li>Uli Iserloh</li>
134
  </ul>
135
  <p>If you&#8217;d like to contribute there&#8217;s a lot to do:</p>
136
  <ul class="SE_lists">
137
- <li><strong>Category Exclusion for new 2.3 Taxonomy Schema</strong></li>
138
  <li>More meta data functions.</li>
139
- <li>Searching tags (WP 2.3).</li>
140
  <li>Search Bookmarks.</li>
141
  <li>&#8230;anything else you want to add.</li>
142
  </ul>
143
- <br/><p>The current project home is at <a href="http://scatter3d.com/">scatter3d.com</a>. If you want to contribute <a href="mailto:dancameron@gmail.com">e-mail me</a> your modifications.</p>
144
  <p class="sig">Respectfully,<br />
145
  <a href="http://dancameron.org/">Dan Cameron</a></p>
146
  </div>
2
 
3
  Class SearchEverythingAdmin {
4
 
5
+ var $version = '4.2';
6
 
7
  function SearchEverythingAdmin() {
8
 
23
 
24
  //build admin interface
25
  function SE4_option_page() {
26
+ global $wpdb, $table_prefix, $wp_version;
27
 
28
  if($_POST['action'] == "save") {
29
  echo "<div class=\"updated fade\" id=\"limitcatsupdatenotice\"><p>" . __("Search Everything Options <strong>Updated</strong>.") . "</p></div>";
30
 
31
  $new_options = array(
32
+ 'SE4_exclude_categories' => $_POST["exclude_categories"],
33
  'SE4_exclude_categories_list' => $_POST["exclude_categories_list"],
34
+ 'SE4_exclude_posts' => $_POST["exclude_posts"],
35
+ 'SE4_exclude_posts_list' => $_POST["exclude_posts_list"],
36
+ 'SE4_use_page_search' => $_POST["search_pages"],
37
+ 'SE4_use_comment_search' => $_POST["search_comments"],
38
+ 'SE4_use_tag_search' => $_POST["search_tags"],
39
  'SE4_approved_comments_only' => $_POST["appvd_comments"],
40
+ 'SE4_approved_pages_only' => $_POST["appvd_pages"],
41
+ 'SE4_use_excerpt_search' => $_POST["search_excerpt"],
42
+ 'SE4_use_draft_search' => $_POST["search_drafts"],
43
+ 'SE4_use_attachment_search' => $_POST["search_attachments"],
44
+ 'SE4_use_metadata_search' => $_POST["search_metadata"]
45
  );
46
 
47
+ update_option("search_tag", $_POST["SE4_use_tag_search"]);
48
  update_option("SE4_options", $new_options);
49
 
50
  }
51
 
52
  $options = get_option('SE4_options');
53
+ $search_tag = get_option('search_tag');
54
 
55
  ?>
56
 
72
 
73
  <p><input type="checkbox" id="exclude_categories" name="exclude_categories"
74
  value="true" <?php if($options['SE4_exclude_categories'] == 'true') { echo 'checked="true"'; } ?> />
75
+ <label for="exclude_categories"><?php _e('Exclude Categories','SearchEverything'); ?></label><br />
76
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label for="exclude_categories_list" class="SE_text_label"><?php _e('Comma separated category IDs (example: 1, 4)','SearchEverything'); ?></label><br />
77
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" size="50" class="SE_text_input" id="exclude_categories_list" name="exclude_categories_list" value="<?php echo $options['SE4_exclude_categories_list'];?>" /></p>
78
 
81
  <label for="search_pages"><?php _e('Search every page (non-password protected)','SearchEverything'); ?></label></p>
82
  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" class="SE_text_input" id="appvd_pages" name="appvd_pages" value="true" <?php if($options['SE4_approved_pages_only'] == 'true') { echo 'checked="true"'; } ?>
83
  <label for="appvd_pages"><?php _e('Search approved pages only?','SearchEverything'); ?></label></p>
84
+
85
+ <?php
86
+ // Show tags only for WP 2.3+
87
+ If ($wp_version >= '2.3') { ?>
88
+ <p><input type="checkbox" id="search_tags" name="search_tags" value="true" <?php if($options['SE4_use_tag_search'] == 'true') { echo 'checked="true"'; } ?> />
89
+ <label for="search_tags"><?php _e('Search every tag','SearchEverything'); ?></label></p>
90
+ <?php } ?>
91
+
92
  <p><input type="checkbox" id="search_comments" name="search_comments"
93
  value="true" <?php if($options['SE4_use_comment_search'] == 'true') { echo 'checked="true"'; } ?> />
94
  <label for="search_comments"><?php _e('Search every comment','SearchEverything'); ?></label></p>
139
  <li><a href="http://green-beast.com/">Mike Cherim</a></li>
140
  <li><a href="http://blog.saddey.net/">Saddy</a></li>
141
  <li><a href="http://www.reaper-x.com/">Reaper</a></li>
142
+ <li><a href="http://beyn.org/">Barış Ünver</a> (localization support)</li>
143
  <li>Uli Iserloh</li>
144
  </ul>
145
  <p>If you&#8217;d like to contribute there&#8217;s a lot to do:</p>
146
  <ul class="SE_lists">
 
147
  <li>More meta data functions.</li>
 
148
  <li>Search Bookmarks.</li>
149
  <li>&#8230;anything else you want to add.</li>
150
  </ul>
151
+ <br/><p>The current project home is at <a href="http://scatter3d.com/">scatter3d.com</a>. If you want to contribute <a href="mailto:dancameron+se@gmail.com">e-mail me</a> your modifications.</p>
152
  <p class="sig">Respectfully,<br />
153
  <a href="http://dancameron.org/">Dan Cameron</a></p>
154
  </div>
lang/SE4-fr_FR.mo CHANGED
Binary file
lang/SE4-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Search Everything\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-10-04 21:49+0100\n"
6
- "Last-Translator: alakhnor <alakhnor@wanadoo.fr>\n"
7
  "Language-Team: Alakhnor\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
@@ -14,95 +14,91 @@ msgstr ""
14
  "X-Poedit-Basepath: c:\\wamp\\www\\le-hibootest\\wp-content\\plugins\\\n"
15
  "X-Poedit-SearchPath-0: search-everything\n"
16
 
17
- #: search-everything/SE-Admin.php:30
18
- msgid "Search Everything Options <strong>Updated</strong>."
19
- msgstr "Options de Search Everything <strong>mises à jour</strong>."
20
-
21
- #: search-everything/SE-Admin.php:59
22
  msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
23
  msgstr "Les options sélectionnées ci-dessous seront utilisées dans les recherches effectuées sur ce site en s'ajoutant à la fonction de recherche existante."
24
 
25
- #: search-everything/SE-Admin.php:63
26
- msgid "SE Search Options"
27
- msgstr "Options de recherche de SE"
28
-
29
- #: search-everything/SE-Admin.php:64
30
- msgid "Use this form to configure your search options."
31
- msgstr "Utilisez ce formulaire pour configurer vos options de recherche."
32
-
33
- #: search-everything/SE-Admin.php:67
34
- msgid "Search Options Form"
35
- msgstr "Formulaire d'option de recherche"
36
-
37
- #: search-everything/SE-Admin.php:69
38
  msgid "Exclude some post or page IDs"
39
  msgstr "Exclure des ID d'articles ou de pages"
40
 
41
- #: search-everything/SE-Admin.php:70
42
  msgid "Comma separated Post IDs (example: 1, 5, 9)"
43
  msgstr "Liste d'IDs d'articles séparées par des virgules (ex : 1,5,9)"
44
 
45
- #: search-everything/SE-Admin.php:75
46
- msgid "Exclude some category IDs (Wordpress 2.2 Only)"
47
- msgstr "Exclure des ID de catégories (WordPress 2.2 seulement)"
48
 
49
- #: search-everything/SE-Admin.php:76
50
  msgid "Comma separated category IDs (example: 1, 4)"
51
  msgstr "Liste d'IDs de catégories séparées par des virgules (ex : 1,4)"
52
 
53
- #: search-everything/SE-Admin.php:81
54
  msgid "Search every page (non-password protected)"
55
  msgstr "Chercher dans toutes les pages (non-protégées par mot de passe)"
56
 
57
- #: search-everything/SE-Admin.php:83
58
  msgid "Search approved pages only?"
59
  msgstr "Chercher dans les pages validées seulement"
60
 
61
- #: search-everything/SE-Admin.php:87
62
  msgid "Search every comment"
63
  msgstr "Chercher dans tous les commentaires"
64
 
65
- #: search-everything/SE-Admin.php:90
66
  msgid "Search approved comments only?"
67
  msgstr "Chercher dans les commentaires validés seulement"
68
 
69
- #: search-everything/SE-Admin.php:93
70
  msgid "Search every excerpt"
71
  msgstr "Chercher dans tous les excerpt"
72
 
73
- #: search-everything/SE-Admin.php:96
74
  msgid "Search every draft"
75
  msgstr "Chercher dans tous les brouillons"
76
 
77
- #: search-everything/SE-Admin.php:99
78
  msgid "Search every attachment"
79
  msgstr "Chercher dans tous les documents joints"
80
 
81
- #: search-everything/SE-Admin.php:102
82
  msgid "Search every custom field (metadata)"
83
  msgstr "Chercher dans tous les champs personnalisés (Meta-data)"
84
 
85
- #: search-everything/SE-Admin.php:108
86
  msgid "Update Options"
87
  msgstr "Mise à jour"
88
 
89
- #: search-everything/SE-Admin.php:114
90
  msgid "SE Search Form"
91
  msgstr "Formulaire de recherche de SE"
92
 
93
- #: search-everything/SE-Admin.php:115
 
 
 
 
 
 
 
 
 
 
 
 
94
  msgid "Use this search form to run a live search test."
95
  msgstr "Utilisez ce champ pour effectuer une recherche réelle."
96
 
97
- #: search-everything/SE-Admin.php:118
98
  msgid "Site Search"
99
  msgstr "Recherche sur le site"
100
 
101
- #: search-everything/SE-Admin.php:120
102
  msgid "Enter search terms"
103
  msgstr "Entrez les termes de recherche"
104
 
105
- #: search-everything/SE-Admin.php:122
106
  msgid "Run Test Search"
107
  msgstr "Lancer la recherche"
108
 
2
  msgstr ""
3
  "Project-Id-Version: Search Everything\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-10-11 01:58+0200\n"
6
+ "Last-Translator: Baris Unver <baris.unver@beyn.org>\n"
7
  "Language-Team: Alakhnor\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
14
  "X-Poedit-Basepath: c:\\wamp\\www\\le-hibootest\\wp-content\\plugins\\\n"
15
  "X-Poedit-SearchPath-0: search-everything\n"
16
 
17
+ #: search-everything/SE-Admin.php:
 
 
 
 
18
  msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
19
  msgstr "Les options sélectionnées ci-dessous seront utilisées dans les recherches effectuées sur ce site en s'ajoutant à la fonction de recherche existante."
20
 
21
+ #: search-everything/SE-Admin.php:
 
 
 
 
 
 
 
 
 
 
 
 
22
  msgid "Exclude some post or page IDs"
23
  msgstr "Exclure des ID d'articles ou de pages"
24
 
25
+ #: search-everything/SE-Admin.php:
26
  msgid "Comma separated Post IDs (example: 1, 5, 9)"
27
  msgstr "Liste d'IDs d'articles séparées par des virgules (ex : 1,5,9)"
28
 
29
+ #: search-everything/SE-Admin.php:
30
+ msgid "Exclude Categories <strong><small>(Wordpress 2.2 Only)</strong></small>"
31
+ msgstr "Exclure des ID de catégories <strong><small>(Wordpress 2.2 seulement)</strong></small>"
32
 
33
+ #: search-everything/SE-Admin.php:
34
  msgid "Comma separated category IDs (example: 1, 4)"
35
  msgstr "Liste d'IDs de catégories séparées par des virgules (ex : 1,4)"
36
 
37
+ #: search-everything/SE-Admin.php:
38
  msgid "Search every page (non-password protected)"
39
  msgstr "Chercher dans toutes les pages (non-protégées par mot de passe)"
40
 
41
+ #: search-everything/SE-Admin.php:
42
  msgid "Search approved pages only?"
43
  msgstr "Chercher dans les pages validées seulement"
44
 
45
+ #: search-everything/SE-Admin.php:
46
  msgid "Search every comment"
47
  msgstr "Chercher dans tous les commentaires"
48
 
49
+ #: search-everything/SE-Admin.php:
50
  msgid "Search approved comments only?"
51
  msgstr "Chercher dans les commentaires validés seulement"
52
 
53
+ #: search-everything/SE-Admin.php:
54
  msgid "Search every excerpt"
55
  msgstr "Chercher dans tous les excerpt"
56
 
57
+ #: search-everything/SE-Admin.php:
58
  msgid "Search every draft"
59
  msgstr "Chercher dans tous les brouillons"
60
 
61
+ #: search-everything/SE-Admin.php:
62
  msgid "Search every attachment"
63
  msgstr "Chercher dans tous les documents joints"
64
 
65
+ #: search-everything/SE-Admin.php:
66
  msgid "Search every custom field (metadata)"
67
  msgstr "Chercher dans tous les champs personnalisés (Meta-data)"
68
 
69
+ #: search-everything/SE-Admin.php:
70
  msgid "Update Options"
71
  msgstr "Mise à jour"
72
 
73
+ #: search-everything/SE-Admin.php:
74
  msgid "SE Search Form"
75
  msgstr "Formulaire de recherche de SE"
76
 
77
+ #: search-everything/SE-Admin.php:
78
+ msgid "SE Search Options"
79
+ msgstr "Options de recherche de SE"
80
+
81
+ #: search-everything/SE-Admin.php:
82
+ msgid "Use this form to configure your search options."
83
+ msgstr "Utilisez ce formulaire pour configurer vos options de recherche."
84
+
85
+ #: search-everything/SE-Admin.php:
86
+ msgid "Search Options Form"
87
+ msgstr "Formulaire d'option de recherche"
88
+
89
+ #: search-everything/SE-Admin.php:
90
  msgid "Use this search form to run a live search test."
91
  msgstr "Utilisez ce champ pour effectuer une recherche réelle."
92
 
93
+ #: search-everything/SE-Admin.php:
94
  msgid "Site Search"
95
  msgstr "Recherche sur le site"
96
 
97
+ #: search-everything/SE-Admin.php:
98
  msgid "Enter search terms"
99
  msgstr "Entrez les termes de recherche"
100
 
101
+ #: search-everything/SE-Admin.php:
102
  msgid "Run Test Search"
103
  msgstr "Lancer la recherche"
104
 
lang/SE4-tr_TR.mo CHANGED
Binary file
lang/SE4-tr_TR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Search Everything\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-10-04 04:01+0200\n"
6
  "Last-Translator: Baris Unver <baris.unver@beyn.org>\n"
7
  "Language-Team: Baris Unver <baris.unver@beyn.org>\n"
8
  "MIME-Version: 1.0\n"
@@ -15,59 +15,91 @@ msgstr ""
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-SearchPath-0: search-everything\n"
17
 
18
- #: search-everything/search_everything.php:304
19
  msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
20
  msgstr "Aşağıda belirleyeceğiniz seçenekler, Wordpress'in varsayılan arama kutusuyla yapılan aramalarda etkili olacaktır."
21
 
22
- #: search-everything/search_everything.php:315
23
  msgid "Exclude some post or page IDs"
24
  msgstr "Belirteceğim yazıları hariç tut"
25
 
26
- #: search-everything/search_everything.php:316
27
  msgid "Comma separated Post IDs (example: 1, 5, 9)"
28
  msgstr "Virgülle ayırarak ID(ler) girin (örn. 1, 5, 9)"
29
 
30
- #: search-everything/search_everything.php:321
31
- msgid "Exclude some category IDs (Wordpress 2.2 Only)"
32
- msgstr "Belirteceğim kategorileri hariç tut"
33
 
34
- #: search-everything/search_everything.php:322
35
  msgid "Comma separated category IDs (example: 1, 4)"
36
  msgstr "Virgülle ayırarak ID(ler) girin (örn. 1, 4)"
37
 
38
- #: search-everything/search_everything.php:327
39
  msgid "Search every page (non-password protected)"
40
  msgstr "Sayfaları ara (şifre konmamışları)"
41
 
42
- #: search-everything/search_everything.php:329
43
  msgid "Search approved pages only?"
44
- msgstr "Yalnızca onaylanmış sayfaları ara?"
45
 
46
- #: search-everything/search_everything.php:333
47
  msgid "Search every comment"
48
  msgstr "Yorumları ara"
49
 
50
- #: search-everything/search_everything.php:336
51
  msgid "Search approved comments only?"
52
  msgstr "Yalnızca onaylanmış yorumları ara"
53
 
54
- #: search-everything/search_everything.php:339
55
  msgid "Search every excerpt"
56
  msgstr "Excerpt'leri ara"
57
 
58
- #: search-everything/search_everything.php:342
59
  msgid "Search every draft"
60
  msgstr "Taslakları ara"
61
 
62
- #: search-everything/search_everything.php:345
63
  msgid "Search every attachment"
64
  msgstr "Eklentileri ara"
65
 
66
- #: search-everything/search_everything.php:348
67
  msgid "Search every custom field (metadata)"
68
  msgstr "Özel alanları ara (metadata)"
69
 
70
- #: search-everything/search_everything.php:354
71
- msgid "Update Options »"
72
- msgstr "Seçenekleri Güncelle »"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
2
  msgstr ""
3
  "Project-Id-Version: Search Everything\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-10-11 01:59+0200\n"
6
  "Last-Translator: Baris Unver <baris.unver@beyn.org>\n"
7
  "Language-Team: Baris Unver <baris.unver@beyn.org>\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-SearchPath-0: search-everything\n"
17
 
18
+ #: search-everything/SE-Admin.php:
19
  msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
20
  msgstr "Aşağıda belirleyeceğiniz seçenekler, Wordpress'in varsayılan arama kutusuyla yapılan aramalarda etkili olacaktır."
21
 
22
+ #: search-everything/SE-Admin.php:
23
  msgid "Exclude some post or page IDs"
24
  msgstr "Belirteceğim yazıları hariç tut"
25
 
26
+ #: search-everything/SE-Admin.php:
27
  msgid "Comma separated Post IDs (example: 1, 5, 9)"
28
  msgstr "Virgülle ayırarak ID(ler) girin (örn. 1, 5, 9)"
29
 
30
+ #: search-everything/SE-Admin.php:
31
+ msgid "Exclude Categories <strong><small>(Wordpress 2.2 Only)</strong></small>"
32
+ msgstr "Belirteceğim kategorileri hariç tut <strong><small>(Yalnızca Wordpress 2.2)</strong></small>"
33
 
34
+ #: search-everything/SE-Admin.php:
35
  msgid "Comma separated category IDs (example: 1, 4)"
36
  msgstr "Virgülle ayırarak ID(ler) girin (örn. 1, 4)"
37
 
38
+ #: search-everything/SE-Admin.php:
39
  msgid "Search every page (non-password protected)"
40
  msgstr "Sayfaları ara (şifre konmamışları)"
41
 
42
+ #: search-everything/SE-Admin.php:
43
  msgid "Search approved pages only?"
44
+ msgstr "Yalnızca onaylanmış sayfaları ara"
45
 
46
+ #: search-everything/SE-Admin.php:
47
  msgid "Search every comment"
48
  msgstr "Yorumları ara"
49
 
50
+ #: search-everything/SE-Admin.php:
51
  msgid "Search approved comments only?"
52
  msgstr "Yalnızca onaylanmış yorumları ara"
53
 
54
+ #: search-everything/SE-Admin.php:
55
  msgid "Search every excerpt"
56
  msgstr "Excerpt'leri ara"
57
 
58
+ #: search-everything/SE-Admin.php:
59
  msgid "Search every draft"
60
  msgstr "Taslakları ara"
61
 
62
+ #: search-everything/SE-Admin.php:
63
  msgid "Search every attachment"
64
  msgstr "Eklentileri ara"
65
 
66
+ #: search-everything/SE-Admin.php:
67
  msgid "Search every custom field (metadata)"
68
  msgstr "Özel alanları ara (metadata)"
69
 
70
+ #: search-everything/SE-Admin.php:
71
+ msgid "Update Options"
72
+ msgstr "Seçenekleri Güncelle"
73
+
74
+ #: search-everything/SE-Admin.php:
75
+ msgid "SE Search Form"
76
+ msgstr "SE Arama Formu"
77
+
78
+ #: search-everything/SE-Admin.php:
79
+ msgid "SE Search Options"
80
+ msgstr "SE Arama Seçenekleri"
81
+
82
+ #: search-everything/SE-Admin.php:
83
+ msgid "Use this form to configure your search options."
84
+ msgstr "Bu bölümü arama seçeneklerini belirlemek için kullanın."
85
+
86
+ #: search-everything/SE-Admin.php:
87
+ msgid "Search Options Form"
88
+ msgstr "Arama Seçenekleri Formu"
89
+
90
+ #: search-everything/SE-Admin.php:
91
+ msgid "Use this search form to run a live search test."
92
+ msgstr "Örnek bir arama yapmak için bu formu kullanın."
93
+
94
+ #: search-everything/SE-Admin.php:
95
+ msgid "Site Search"
96
+ msgstr "Site Araması"
97
+
98
+ #: search-everything/SE-Admin.php:
99
+ msgid "Enter search terms"
100
+ msgstr "Arama kriterlerini girin"
101
+
102
+ #: search-everything/SE-Admin.php:
103
+ msgid "Run Test Search"
104
+ msgstr "Deneme Araması"
105
 
lang/SE4.pot CHANGED
@@ -12,59 +12,90 @@ msgstr ""
12
  "X-Poedit-Basepath: c:\\wamp\\www\\wordpress212\\wp-content\\plugins\\\n"
13
  "X-Poedit-SearchPath-0: search-everything\n"
14
 
15
- #: search-everything/search_everything.php:304
16
  msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
17
  msgstr ""
18
 
19
- #: search-everything/search_everything.php:315
20
  msgid "Exclude some post or page IDs"
21
  msgstr ""
22
 
23
- #: search-everything/search_everything.php:316
24
  msgid "Comma separated Post IDs (example: 1, 5, 9)"
25
  msgstr ""
26
 
27
- #: search-everything/search_everything.php:321
28
- msgid "Exclude some category IDs (Wordpress 2.2 Only)"
29
  msgstr ""
30
 
31
- #: search-everything/search_everything.php:322
32
  msgid "Comma separated category IDs (example: 1, 4)"
33
  msgstr ""
34
 
35
- #: search-everything/search_everything.php:327
36
  msgid "Search every page (non-password protected)"
37
  msgstr ""
38
 
39
- #: search-everything/search_everything.php:329
40
  msgid "Search approved pages only?"
41
  msgstr ""
42
 
43
- #: search-everything/search_everything.php:333
44
  msgid "Search every comment"
45
  msgstr ""
46
 
47
- #: search-everything/search_everything.php:336
48
  msgid "Search approved comments only?"
49
  msgstr ""
50
 
51
- #: search-everything/search_everything.php:339
52
  msgid "Search every excerpt"
53
  msgstr ""
54
 
55
- #: search-everything/search_everything.php:342
56
  msgid "Search every draft"
57
  msgstr ""
58
 
59
- #: search-everything/search_everything.php:345
60
  msgid "Search every attachment"
61
  msgstr ""
62
 
63
- #: search-everything/search_everything.php:348
64
  msgid "Search every custom field (metadata)"
65
  msgstr ""
66
 
67
- #: search-everything/search_everything.php:354
68
- msgid "Update Options »"
69
  msgstr ""
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  "X-Poedit-Basepath: c:\\wamp\\www\\wordpress212\\wp-content\\plugins\\\n"
13
  "X-Poedit-SearchPath-0: search-everything\n"
14
 
15
+ #: search-everything/SE-Admin.php:
16
  msgid "The options selected below will be used in every search query on this site; in addition to the built-in post search."
17
  msgstr ""
18
 
19
+ #: search-everything/SE-Admin.php:
20
  msgid "Exclude some post or page IDs"
21
  msgstr ""
22
 
23
+ #: search-everything/SE-Admin.php:
24
  msgid "Comma separated Post IDs (example: 1, 5, 9)"
25
  msgstr ""
26
 
27
+ #: search-everything/SE-Admin.php:
28
+ msgid "Exclude Categories <strong><small>(Wordpress 2.2 Only)</strong></small>"
29
  msgstr ""
30
 
31
+ #: search-everything/SE-Admin.php:
32
  msgid "Comma separated category IDs (example: 1, 4)"
33
  msgstr ""
34
 
35
+ #: search-everything/SE-Admin.php:
36
  msgid "Search every page (non-password protected)"
37
  msgstr ""
38
 
39
+ #: search-everything/SE-Admin.php:
40
  msgid "Search approved pages only?"
41
  msgstr ""
42
 
43
+ #: search-everything/SE-Admin.php:
44
  msgid "Search every comment"
45
  msgstr ""
46
 
47
+ #: search-everything/SE-Admin.php:
48
  msgid "Search approved comments only?"
49
  msgstr ""
50
 
51
+ #: search-everything/SE-Admin.php:
52
  msgid "Search every excerpt"
53
  msgstr ""
54
 
55
+ #: search-everything/SE-Admin.php:
56
  msgid "Search every draft"
57
  msgstr ""
58
 
59
+ #: search-everything/SE-Admin.php:
60
  msgid "Search every attachment"
61
  msgstr ""
62
 
63
+ #: search-everything/SE-Admin.php:
64
  msgid "Search every custom field (metadata)"
65
  msgstr ""
66
 
67
+ #: search-everything/SE-Admin.php:
68
+ msgid "Update Options"
69
  msgstr ""
70
 
71
+ #: search-everything/SE-Admin.php:
72
+ msgid "SE Search Form"
73
+ msgstr ""
74
+
75
+ #: search-everything/SE-Admin.php:
76
+ msgid "SE Search Options"
77
+ msgstr ""
78
+
79
+ #: search-everything/SE-Admin.php:
80
+ msgid "Use this form to configure your search options."
81
+ msgstr ""
82
+
83
+ #: search-everything/SE-Admin.php:
84
+ msgid "Search Options Form"
85
+ msgstr ""
86
+
87
+ #: search-everything/SE-Admin.php:
88
+ msgid "Use this search form to run a live search test."
89
+ msgstr ""
90
+
91
+ #: search-everything/SE-Admin.php:
92
+ msgid "Site Search"
93
+ msgstr ""
94
+
95
+ #: search-everything/SE-Admin.php:
96
+ msgid "Enter search terms"
97
+ msgstr ""
98
+
99
+ #: search-everything/SE-Admin.php:
100
+ msgid "Run Test Search"
101
+ msgstr ""
readme.txt CHANGED
@@ -4,16 +4,17 @@ Donate link: http://www.amazon.com/gp/registry/wishlist/3EM84J7FVHE6S/ref=wl_web
4
  Tags: search, comment search, page search, admin, seo
5
  Requires at least: 2.1
6
  Tested up to: 2.3
7
- Stable tag: 4.1
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
11
  == Description ==
12
 
13
- Search Everything increases the ability of the default Wordpress Search, options included:
14
-
15
  * Search Every Page
16
- * Search non-password protected pages only
 
17
  * Search Every Comment
18
  * Search only approved comments
19
  * Search Every Draft
@@ -22,13 +23,14 @@ Search Everything increases the ability of the default Wordpress Search, options
22
  * Search Every Custom Field (metadata)
23
  * Search Every Category Name
24
  * Exclude Posts from search
25
- * Exclude Categories from search (WP 2.2 only)
26
-
27
- ... tagging support and category exclusion for WordPress 2.3 coming soon.
28
 
29
 
30
  == Update Log ==
31
 
 
32
  * 4.1 - Major Plugin Architecture change, better localization support
33
  * 4.0.3 - Localization pot and Turkish translation (props Baris Unver)
34
  * 4.0.2 - CSS Bug fix - minor
@@ -42,9 +44,9 @@ Search Everything increases the ability of the default Wordpress Search, options
42
  Installation Instructions:
43
 
44
  1. Download the plugin and unzip it (didn't you already do this?).
45
- 2. Put the 'searcheverything.php' file into your wp-content/plugins/ directory.
46
  3. Go to the Plugins page in your WordPress Administration area and click 'Activate' next to Search Everything.
47
- 4. Go to the Options > Search Everything and configure your site. (There is a bug were you might need to save your options twice)
48
  5. That's it. Have fun and if you can contribute (see notes), at the very least post your likes and dislikes about the plugin linking to http://dancameron.org/wordpress/ so your readers to find the plugin and I can see your feedback.
49
 
50
 
4
  Tags: search, comment search, page search, admin, seo
5
  Requires at least: 2.1
6
  Tested up to: 2.3
7
+ Stable tag: 4.2
8
 
9
  Increases Wordpress' default search functionality through an options panel. Options include searching pages, excerpts, attachments, drafts, comments and custom fields (metadata).
10
 
11
  == Description ==
12
 
13
+ Search Everything increases the ability of the default Wordpress Search, options included:
14
+
15
  * Search Every Page
16
+ * Search Every Tag
17
+ * Search non-password protected pages only
18
  * Search Every Comment
19
  * Search only approved comments
20
  * Search Every Draft
23
  * Search Every Custom Field (metadata)
24
  * Search Every Category Name
25
  * Exclude Posts from search
26
+ * Exclude Categories from search
27
+
28
+ ... tagging support and category exclusion for WordPress 2.3 is now supported.
29
 
30
 
31
  == Update Log ==
32
 
33
+ * 4.2 - Full 2.3 Support with Tag Searching and Category Exclusion
34
  * 4.1 - Major Plugin Architecture change, better localization support
35
  * 4.0.3 - Localization pot and Turkish translation (props Baris Unver)
36
  * 4.0.2 - CSS Bug fix - minor
44
  Installation Instructions:
45
 
46
  1. Download the plugin and unzip it (didn't you already do this?).
47
+ 2. Put the 'searchev-erything' directory into your wp-content/plugins/ directory.
48
  3. Go to the Plugins page in your WordPress Administration area and click 'Activate' next to Search Everything.
49
+ 4. Go to the Options > Search Everything and configure your site.
50
  5. That's it. Have fun and if you can contribute (see notes), at the very least post your likes and dislikes about the plugin linking to http://dancameron.org/wordpress/ so your readers to find the plugin and I can see your feedback.
51
 
52
 
screenshot-1.jpg CHANGED
Binary file
search_everything.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: http://dancameron.org/wordpress/
5
  Description: Adds search functionality with little setup. Including options to search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
- Version: 4.1
7
  Author: Dan Cameron
8
  Author URI: http://dancameron.org/
9
  */
@@ -22,9 +22,11 @@ Class SearchEverything {
22
 
23
  var $login = false;
24
  var $options;
 
25
 
26
  function SearchEverything(){
27
-
 
28
  $this->options = get_option('SE4_options');
29
 
30
  if (is_admin()) {
@@ -33,6 +35,12 @@ Class SearchEverything {
33
  }
34
 
35
  //add filters based upon option settings
 
 
 
 
 
 
36
  if ("true" == $this->options['SE4_use_page_search']) {
37
  add_filter('posts_where', array(&$this, 'SE4_search_pages'));
38
  $this->SE4_log("searching pages");
@@ -70,23 +78,28 @@ Class SearchEverything {
70
  $this->SE4_log("searching excluding posts");
71
  }
72
 
73
- // - Depracated in 2.3
74
  if ("true" == $this->options['SE4_exclude_categories']) {
75
  add_filter('posts_where', array(&$this, 'SE4_exclude_categories'));
76
- add_filter('posts_join', array(&$this, 'SE4_exclude_categories_join'));
 
 
 
 
 
77
  $this->SE4_log("searching excluding categories");
78
  }
79
-
80
  //Duplicate fix provided by Tiago.Pocinho
81
  add_filter('posts_request', array(&$this, 'SE4_distinct'));
82
  }
83
 
 
84
  function SE4_log($msg) {
85
 
86
  if ($this->logging) {
87
  $fp = fopen("logfile.log","a+");
88
  $date = date("Y-m-d H:i:s ");
89
- $source = "search_everything_2 plugin: ";
90
  fwrite($fp, "\n\n".$date."\n".$source."\n".$msg);
91
  fclose($fp);
92
  }
@@ -118,32 +131,6 @@ Class SearchEverything {
118
  return $where;
119
  }
120
 
121
- //exlude some categories from search - Depracated in 2.3
122
- function SE4_exclude_categories($where) {
123
- global $wp_query;
124
- if (!empty($wp_query->query_vars['s'])) {
125
- $excl_list = implode(',', explode(',', trim($this->options['SE4_exclude_categories_list'])));
126
- $where = str_replace('"', '\'', $where);
127
- $where = 'AND ('.substr($where, strpos($where, 'AND')+3).' )';
128
- $where .= ' AND (c.category_id NOT IN ( '.$excl_list.' ))';
129
- }
130
-
131
- $this->SE4_log("ex cats where: ".$where);
132
- return $where;
133
- }
134
-
135
- //join for excluding categories - Depracated in 2.3
136
- function SE4_exclude_categories_join($join) {
137
- global $wp_query, $wpdb;
138
-
139
- if (!empty($wp_query->query_vars['s'])) {
140
-
141
- $join .= "LEFT JOIN $wpdb->post2cat AS c ON $wpdb->posts.ID = c.post_id";
142
- }
143
- $this->SE4_log("category join: ".$join);
144
- return $join;
145
- }
146
-
147
  //search pages (except password protected pages provided by loops)
148
  function SE4_search_pages($where) {
149
  global $wp_query;
@@ -206,7 +193,15 @@ Class SearchEverything {
206
  function SE4_search_comments($where) {
207
  global $wp_query, $wpdb;
208
  if (!empty($wp_query->query_vars['s'])) {
209
- $where .= " OR (comment_content LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
 
 
 
 
 
 
 
 
210
  }
211
 
212
  $this->SE4_log("comments where: ".$where);
@@ -214,47 +209,115 @@ Class SearchEverything {
214
  return $where;
215
  }
216
 
217
- //join for searching comments
218
- function SE4_comments_join($join) {
219
  global $wp_query, $wpdb;
 
 
 
 
 
 
 
 
220
 
 
 
 
 
 
 
221
  if (!empty($wp_query->query_vars['s'])) {
 
 
222
 
223
- if ('true' == $this->options['SE4_approved_comments_only']) {
224
- $comment_approved = " AND comment_approved = '1'";
225
- } else {
226
- $comment_approved = '';
227
- }
228
 
229
- $join .= "LEFT JOIN $wpdb->comments ON ( comment_post_ID = ID " . $comment_approved . ") ";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  }
231
- $this->SE4_log("comments join: ".$join);
232
- return $join;
 
233
  }
234
 
235
- //search metadata
236
- function SE4_search_metadata($where) {
237
  global $wp_query, $wpdb;
 
238
  if (!empty($wp_query->query_vars['s'])) {
239
- $where .= " OR meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%' ";
 
240
  }
 
 
 
241
 
242
- $this->SE4_log("metadata where: ".$where);
 
 
243
 
244
- return $where;
245
- }
 
 
 
246
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  //join for searching metadata
248
  function SE4_search_metadata_join($join) {
249
  global $wp_query, $wpdb;
250
 
251
  if (!empty($wp_query->query_vars['s'])) {
252
-
253
- $join .= "LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id ";
 
 
 
254
  }
255
  $this->SE4_log("metadata join: ".$join);
256
  return $join;
257
  }
 
 
 
 
 
 
 
 
 
 
 
 
258
  }
259
 
260
  ?>
3
  Plugin Name: Search Everything
4
  Plugin URI: http://dancameron.org/wordpress/
5
  Description: Adds search functionality with little setup. Including options to search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
+ Version: 4.2
7
  Author: Dan Cameron
8
  Author URI: http://dancameron.org/
9
  */
22
 
23
  var $login = false;
24
  var $options;
25
+ var $wp_ver23;
26
 
27
  function SearchEverything(){
28
+ global $wp_version;
29
+ $this->wp_ver23 = ($wp_version >= '2.3');
30
  $this->options = get_option('SE4_options');
31
 
32
  if (is_admin()) {
35
  }
36
 
37
  //add filters based upon option settings
38
+ if ("true" == $this->options['SE4_use_tag_search']) {
39
+ add_filter('posts_where', array(&$this, 'SE4_search_tags'));
40
+ add_filter('posts_join', array(&$this, 'SE4_terms_join'));
41
+ $this->SE4_log("searching tags");
42
+ }
43
+
44
  if ("true" == $this->options['SE4_use_page_search']) {
45
  add_filter('posts_where', array(&$this, 'SE4_search_pages'));
46
  $this->SE4_log("searching pages");
78
  $this->SE4_log("searching excluding posts");
79
  }
80
 
 
81
  if ("true" == $this->options['SE4_exclude_categories']) {
82
  add_filter('posts_where', array(&$this, 'SE4_exclude_categories'));
83
+ if ($this->wp_ver23) {
84
+ if ("true" != $this->options['SE4_use_tag_search'])
85
+ add_filter('posts_join', array(&$this, 'SE4_terms_join'));
86
+ }
87
+ else
88
+ add_filter('posts_join', array(&$this, 'SE4_exclude_categories_join'));
89
  $this->SE4_log("searching excluding categories");
90
  }
91
+
92
  //Duplicate fix provided by Tiago.Pocinho
93
  add_filter('posts_request', array(&$this, 'SE4_distinct'));
94
  }
95
 
96
+ // Logs search into a file
97
  function SE4_log($msg) {
98
 
99
  if ($this->logging) {
100
  $fp = fopen("logfile.log","a+");
101
  $date = date("Y-m-d H:i:s ");
102
+ $source = "search_everythin plugin: ";
103
  fwrite($fp, "\n\n".$date."\n".$source."\n".$msg);
104
  fclose($fp);
105
  }
131
  return $where;
132
  }
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  //search pages (except password protected pages provided by loops)
135
  function SE4_search_pages($where) {
136
  global $wp_query;
193
  function SE4_search_comments($where) {
194
  global $wp_query, $wpdb;
195
  if (!empty($wp_query->query_vars['s'])) {
196
+ if ('true' == $this->options['SE4_approved_comments_only']) {
197
+ $comment_approved = " AND c.comment_approved = '1'";
198
+ } else {
199
+ $comment_approved = '';
200
+ }
201
+
202
+ if ($this->wp_ver23) {
203
+ $where .= " OR ( c.comment_post_ID = ".$wpdb->posts . ".ID " . $comment_approved . " AND c.comment_content LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
204
+ }
205
  }
206
 
207
  $this->SE4_log("comments where: ".$where);
209
  return $where;
210
  }
211
 
212
+ //search metadata
213
+ function SE4_search_metadata($where) {
214
  global $wp_query, $wpdb;
215
+ if (!empty($wp_query->query_vars['s'])) {
216
+ if ($this->wp_ver23)
217
+ $where .= " OR ($wpdb->posts.ID = m.post_id AND m.meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
218
+ else
219
+ $where .= " OR meta_value LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%' ";
220
+ }
221
+
222
+ $this->SE4_log("metadata where: ".$where);
223
 
224
+ return $where;
225
+ }
226
+
227
+ //search tags
228
+ function SE4_search_tags($where) {
229
+ global $wp_query, $wpdb;
230
  if (!empty($wp_query->query_vars['s'])) {
231
+ $where .= " OR ( $wpdb->posts.ID = rel.object_id AND rel.term_taxonomy_id = tax.term_taxonomy_id AND tax.term_id = ter.term_id AND tax.taxonomy = 'post_tag' AND ter.slug LIKE '%" . $wpdb->escape($wp_query->query_vars['s']) . "%') ";
232
+ }
233
 
234
+ $this->SE4_log("tags where: ".$where);
 
 
 
 
235
 
236
+ return $where;
237
+ }
238
+
239
+ //exlude some categories from search
240
+ function SE4_exclude_categories($where) {
241
+ global $wp_query, $wpdb;
242
+ if (!empty($wp_query->query_vars['s'])) {
243
+ if (trim($this->options['SE4_exclude_categories_list']) != '') {
244
+ $excl_list = implode(',', explode(',', trim($this->options['SE4_exclude_categories_list'])));
245
+ $where = str_replace('"', '\'', $where);
246
+ $where = 'AND ('.substr($where, strpos($where, 'AND')+3).' )';
247
+ if ($this->wp_ver23)
248
+ $where .= " AND ( $wpdb->posts.ID = rel.object_id AND rel.term_taxonomy_id = tax.term_taxonomy_id AND tax.taxonomy = 'category' AND (tax.term_id NOT IN ( ".$excl_list." )) OR ($wpdb->posts.ID = rel.object_id AND rel.term_taxonomy_id = tax.term_taxonomy_id AND tax.taxonomy = 'post_tag' )) ";
249
+ else
250
+ $where .= ' AND (c.category_id NOT IN ( '.$excl_list.' ))';
251
+ }
252
  }
253
+
254
+ $this->SE4_log("ex cats where: ".$where);
255
+ return $where;
256
  }
257
 
258
+ //join for excluding categories - Deprecated in 2.3
259
+ function SE4_exclude_categories_join($join) {
260
  global $wp_query, $wpdb;
261
+
262
  if (!empty($wp_query->query_vars['s'])) {
263
+
264
+ $join .= "LEFT JOIN $wpdb->post2cat AS c ON $wpdb->posts.ID = c.post_id";
265
  }
266
+ $this->SE4_log("category join: ".$join);
267
+ return $join;
268
+ }
269
 
270
+ //join for searching comments
271
+ function SE4_comments_join($join) {
272
+ global $wp_query, $wpdb;
273
 
274
+ if (!empty($wp_query->query_vars['s'])) {
275
+
276
+ if ($this->wp_ver23) {
277
+ $join .= " ,$wpdb->comments AS c ";
278
+ } else {
279
 
280
+ if ('true' == $this->options['SE4_approved_comments_only']) {
281
+ $comment_approved = " AND comment_approved = '1'";
282
+ } else {
283
+ $comment_approved = '';
284
+ }
285
+
286
+ $join .= "LEFT JOIN $wpdb->comments ON ( comment_post_ID = ID " . $comment_approved . ") ";
287
+
288
+ }
289
+ }
290
+
291
+ $this->SE4_log("comments join: ".$join);
292
+ return $join;
293
+ }
294
+
295
  //join for searching metadata
296
  function SE4_search_metadata_join($join) {
297
  global $wp_query, $wpdb;
298
 
299
  if (!empty($wp_query->query_vars['s'])) {
300
+
301
+ if ($this->wp_ver23)
302
+ $join .= " ,$wpdb->postmeta AS m ";
303
+ else
304
+ $join .= "LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id ";
305
  }
306
  $this->SE4_log("metadata join: ".$join);
307
  return $join;
308
  }
309
+
310
+ //join for searching tags
311
+ function SE4_terms_join($join) {
312
+ global $wp_query, $wpdb;
313
+
314
+ if (!empty($wp_query->query_vars['s'])) {
315
+ $join .= " , $wpdb->terms AS ter, $wpdb->term_relationships AS rel, $wpdb->term_taxonomy AS tax ";
316
+ }
317
+
318
+ $this->SE4_log("tags join: ".$join);
319
+ return $join;
320
+ }
321
  }
322
 
323
  ?>