Changeset 1084123
- Timestamp:
- 02/06/2015 09:46:19 PM (11 years ago)
- Location:
- osd-exclude-from-search-results
- Files:
-
- 7 added
- 3 edited
-
tags/2.1 (added)
-
tags/2.1/includes (added)
-
tags/2.1/includes/OSDExcludeFromSearchResults.php (added)
-
tags/2.1/includes/global_settings.php (added)
-
tags/2.1/includes/installation_actions.php (added)
-
tags/2.1/osd_exclude_from_search_results.php (added)
-
tags/2.1/readme.txt (added)
-
trunk/includes/OSDExcludeFromSearchResults.php (modified) (2 diffs)
-
trunk/osd_exclude_from_search_results.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
osd-exclude-from-search-results/trunk/includes/OSDExcludeFromSearchResults.php
r1076255 r1084123 91 91 function osd_exclude_from_search_filter($query) { 92 92 if($query->is_search) { 93 $acceptable_post_types = array(); 94 $all_post_types_array = get_post_types(array('public' => 1), 'array'); 95 foreach($all_post_types_array as $post_type) { 96 if (!isset($this->user_settings['exclude_all'][$post_type->name])) { 97 $acceptable_post_types[] = $post_type->name; 98 } 99 } 100 93 101 global $wpdb; 94 102 $prefix = $wpdb->base_prefix; … … 107 115 108 116 $query->set('post__not_in', $excludeArray); 117 $query->set('post_type', $acceptable_post_types); 109 118 } 110 119 return $query; -
osd-exclude-from-search-results/trunk/osd_exclude_from_search_results.php
r1076255 r1084123 4 4 Plugin URI: http://outsidesource.com 5 5 Description: A plugin that excludes selected pages or posts from the search results. 6 Version: 2. 06 Version: 2.1 7 7 Author: OSD Web Development Team 8 8 Author URI: http://outsidesource.com -
osd-exclude-from-search-results/trunk/readme.txt
r1076255 r1084123 4 4 Requires at least: 3.4 5 5 Tested up to: 4.1 6 Stable tag: 2. 06 Stable tag: 2.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Upgrade Notice == 69 69 70 = 2.1 = 71 Bug fixes 72 70 73 = 1.5 = 71 74 User permission updates
Note: See TracChangeset
for help on using the changeset viewer.