Changeset 1292
- Timestamp:
- 02/21/2015 01:25:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r1229 r1292 1070 1070 public function add_avatar_to_speaker_posts( $content ) { 1071 1071 global $post; 1072 $enabled_site_ids = a rray( 364); // 2014.sf1072 $enabled_site_ids = apply_filters( 'wcpt_speaker_post_avatar_enabled_site_ids', array( 364 ) ); // 2014.sf 1073 1073 1074 1074 if ( 'wcb_speaker' !== $post->post_type ) { … … 1077 1077 1078 1078 $site_id = get_current_blog_id(); 1079 if ( $site_id <= 463&& ! in_array( $site_id, $enabled_site_ids ) ) {1079 if ( $site_id <= apply_filters( 'wcpt_speaker_post_avatar_min_site_id', 463 ) && ! in_array( $site_id, $enabled_site_ids ) ) { 1080 1080 return $content; 1081 1081 } … … 1098 1098 function add_speaker_info_to_session_posts( $content ) { 1099 1099 global $post; 1100 $enabled_site_ids = a rray( 364); // 2014.sf1100 $enabled_site_ids = apply_filters( 'wcpt_session_post_speaker_info_enabled_site_ids', array( 364 ) ); // 2014.sf 1101 1101 1102 1102 if ( 'wcb_session' !== $post->post_type ) { … … 1105 1105 1106 1106 $site_id = get_current_blog_id(); 1107 if ( $site_id <= 463&& ! in_array( $site_id, $enabled_site_ids ) ) {1107 if ( $site_id <= apply_filters( 'wcpt_session_post_speaker_info_min_site_id', 463 ) && ! in_array( $site_id, $enabled_site_ids ) ) { 1108 1108 return $content; 1109 1109 } … … 1163 1163 function add_session_info_to_speaker_posts( $content ) { 1164 1164 global $post; 1165 $enabled_site_ids = a rray( 364); // 2014.sf1165 $enabled_site_ids = apply_filters( 'wcpt_speaker_post_session_info_enabled_site_ids', array( 364 ) ); // 2014.sf 1166 1166 1167 1167 if ( 'wcb_speaker' !== $post->post_type ) { … … 1170 1170 1171 1171 $site_id = get_current_blog_id(); 1172 if ( $site_id <= 463&& ! in_array( $site_id, $enabled_site_ids ) ) {1172 if ( $site_id <= apply_filters( 'wcpt_speaker_post_session_info_min_site_id', 463 ) && ! in_array( $site_id, $enabled_site_ids ) ) { 1173 1173 return $content; 1174 1174 }
Note: See TracChangeset
for help on using the changeset viewer.