Plugin Directory

Changeset 1084123


Ignore:
Timestamp:
02/06/2015 09:46:19 PM (11 years ago)
Author:
osdwebdev
Message:

bug fixes

Location:
osd-exclude-from-search-results
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • osd-exclude-from-search-results/trunk/includes/OSDExcludeFromSearchResults.php

    r1076255 r1084123  
    9191    function osd_exclude_from_search_filter($query) {
    9292        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
    93101            global $wpdb;
    94102            $prefix = $wpdb->base_prefix;
     
    107115           
    108116            $query->set('post__not_in', $excludeArray);
     117            $query->set('post_type', $acceptable_post_types);
    109118        }
    110119        return $query;
  • osd-exclude-from-search-results/trunk/osd_exclude_from_search_results.php

    r1076255 r1084123  
    44Plugin URI: http://outsidesource.com
    55Description: A plugin that excludes selected pages or posts from the search results.
    6 Version: 2.0
     6Version: 2.1
    77Author: OSD Web Development Team
    88Author URI: http://outsidesource.com
  • osd-exclude-from-search-results/trunk/readme.txt

    r1076255 r1084123  
    44Requires at least: 3.4
    55Tested up to: 4.1
    6 Stable tag: 2.0
     6Stable tag: 2.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Upgrade Notice ==
    6969
     70= 2.1 =
     71Bug fixes
     72
    7073= 1.5 =
    7174User permission updates
Note: See TracChangeset for help on using the changeset viewer.