Changeset 951236
- Timestamp:
- 07/18/2014 09:08:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-seo-pack/trunk/aioseop_class.php
r950345 r951236 468 468 "dont_truncate_descriptions"=> Array( 469 469 'name' => __( 'Never Shorten Long Descriptions:', 'all_in_one_seo_pack' ), 470 'default' => 0), 470 'default' => 0), 471 471 "unprotect_meta"=> Array( 472 472 'name' => __( 'Unprotect Post Meta Fields:', 'all_in_one_seo_pack' ), … … 1103 1103 if ( aioseop_mrt_exclude_this_page() ) return false; 1104 1104 $post = $this->get_queried_object(); 1105 1106 1107 1105 1108 if( empty( $aioseop_options['aiosp_enablecpost'] ) ) { 1106 1109 $wp_post_types = get_post_types( Array( '_builtin' => true ) ); // don't display meta if SEO isn't enabled on custom post types -- pdb 1107 if( is_singular() && !i s_singular($wp_post_types ) && !is_front_page() ) return false;1110 if( is_singular() && !i $wp_post_types ) && !is_front_page() ) return false; 1108 1111 } elseif ( !empty( $aioseop_options['aiosp_cpostadvanced'] ) ) { 1109 1112 $wp_post_types = $aioseop_options['aiosp_cpostactive']; 1110 if ( is_singular() && !i s_singular($wp_post_types ) && !is_front_page() ) return false;1113 if ( is_singular() && !i $wp_post_types ) && !is_front_page() ) return false; 1111 1114 if ( is_post_type_archive() && !is_post_type_archive( $wp_post_types ) ) return false; 1112 1115 }
Note: See TracChangeset
for help on using the changeset viewer.