Changeset 918372
- Timestamp:
- 05/21/2014 03:03:59 AM (12 years ago)
- Location:
- brilliant-easy-exclude-posts
- Files:
-
- 3 added
- 2 edited
-
tags/1.0 (added)
-
tags/1.0/brilliant_exclude.php (added)
-
tags/1.0/readme.txt (added)
-
trunk/brilliant_exclude.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
brilliant-easy-exclude-posts/trunk/brilliant_exclude.php
r868276 r918372 3 3 Plugin Name: Brilliant Easy Exclude Posts (BEEP) 4 4 Description: Hide posts from public view so users need the direct link (but not a password) to view the hidden posts. Activate this feature with a simple checkbox on the editor screen. 5 Version: 0.95 Version: 1.0 6 6 Author: bGentry 7 7 Author URI: http://bryangentry.us … … 19 19 register_setting( 'reading', 'BEEP-allow-search-engines' ); 20 20 21 add_settings_section( 'BEEPsettings', 'Brilliant Easy Exclude Posts settin sg', 'BEEPsettingsSection', 'reading' );21 add_settings_section( 'BEEPsettings', 'Brilliant Easy Exclude Posts settings', 'BEEPsettingsSection', 'reading' ); 22 22 23 23 … … 36 36 37 37 function BEEPsettings_search_engines() { 38 echo '<input name="BEEP-allow-search-engines" id="BEEP-allow-search-engines" type="checkbox" value="1" class="code" ' . checked( 1, get_option( 'BEEP-allow-search-engines' ), false ) . ' /> By default, thehidden post will ask search engines to not index hidden pages. Check this box if you would like to allow search engines to index pages that you select to hide from news feeds and other places on your site.';38 echo '<input name="BEEP-allow-search-engines" id="BEEP-allow-search-engines" type="checkbox" value="1" class="code" ' . checked( 1, get_option( 'BEEP-allow-search-engines' ), false ) . ' /> By default, a hidden post will ask search engines to not index hidden pages. Check this box if you would like to allow search engines to index pages that you select to hide from news feeds and other places on your site.'; 39 39 } 40 40 … … 63 63 global $post; 64 64 if ( isset ( $post) ) { 65 if ( get_option( 'BEEP-double-exclude' ) == "1" ) { 66 $hidden = get_post_meta( $post->ID, 'bgExclude', true ); 65 66 $hidden = get_post_meta( $post->ID, 'bgExclude', true ); 67 if ( get_option( 'BEEP-double-exclude' ) == "1" ) { 67 68 if ( $hidden == "1" ) { 68 69 return $query; 69 70 } 71 } 72 73 if ( $hidden == "1" ) { 74 if ( get_option( 'BEEP-allow-search-engines' ) !== "1" ) { 75 add_action('wp_head', 'beep_add_nofollow_link'); 76 } 70 77 } 71 78 … … 76 83 ))); 77 84 78 } elseif ( get_option( 'BEEP-allow-search-engines' ) !== "1" ) { 79 add_action('wp_head', 'beep_add_nofollow_link'); 80 81 } 85 } 86 82 87 } 83 88 return $query; -
brilliant-easy-exclude-posts/trunk/readme.txt
r868276 r918372 5 5 Requires at least: 3.0 6 6 Tested up to: 3.8.1 7 Stable tag: 0.97 Stable tag: 1.0 8 8 License: GPL2 9 9 … … 26 26 27 27 == Changelog == 28 =1.0= 29 *Fixed issue that was causing "nofollow" tags to appear on unexpected pages 30 28 31 = 0.9 = 29 32 *Plugin created
Note: See TracChangeset
for help on using the changeset viewer.