Plugin Directory

Changeset 855054


Ignore:
Timestamp:
02/10/2014 08:50:39 PM (12 years ago)
Author:
yonisink
Message:

Version 1.11 modifies query var.

Location:
custom-post-type-lockdown
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • custom-post-type-lockdown/trunk/CPTLockdown.php

    r664548 r855054  
    44Plugin URI:
    55Author URI: http://www.social-ink.net
    6 Version: 1.1
     6Version: 1.11
    77Author: Yonatan Reinberg of Social Ink
    88Description: Prevents access to single Custom Post Type views and Redirects Search Results - unlock the power of CPTs!
     
    4343        global $wp_query;   
    4444        $existing_prevent =  get_option('cptLockdown_prevent');
    45         $this_type=$wp_query->query['post_type'];
     45        $this_type=isset($wp_query->queried_object) && isset($wp_query->queried_object->post_type) ? $wp_query->queried_object->post_type : false;
    4646        if(is_singular()&&$this_type&&is_array($existing_prevent))
    4747            if(array_key_exists($this_type,$existing_prevent)) {
  • custom-post-type-lockdown/trunk/readme.txt

    r664548 r855054  
    55Requires at least: 3.1
    66Tested up to: 3.4.2
    7 Stable Tag: 1.1
     7Stable Tag: 1.11
    88
    99Prevents access to single Custom Post Type views and Redirects Search Results - unlock the power of CPTs!
Note: See TracChangeset for help on using the changeset viewer.