Changeset 855054
- Timestamp:
- 02/10/2014 08:50:39 PM (12 years ago)
- Location:
- custom-post-type-lockdown
- Files:
-
- 3 added
- 2 edited
-
tags/1.11 (added)
-
tags/1.11/CPTLockdown.php (added)
-
tags/1.11/readme.txt (added)
-
trunk/CPTLockdown.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-post-type-lockdown/trunk/CPTLockdown.php
r664548 r855054 4 4 Plugin URI: 5 5 Author URI: http://www.social-ink.net 6 Version: 1.1 6 Version: 1.11 7 7 Author: Yonatan Reinberg of Social Ink 8 8 Description: Prevents access to single Custom Post Type views and Redirects Search Results - unlock the power of CPTs! … … 43 43 global $wp_query; 44 44 $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; 46 46 if(is_singular()&&$this_type&&is_array($existing_prevent)) 47 47 if(array_key_exists($this_type,$existing_prevent)) { -
custom-post-type-lockdown/trunk/readme.txt
r664548 r855054 5 5 Requires at least: 3.1 6 6 Tested up to: 3.4.2 7 Stable Tag: 1.1 7 Stable Tag: 1.11 8 8 9 9 Prevents 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.