MikeNGarrett
Forum Replies Created
-
Forum: Plugins
In reply to: [CDN Sync Tool] Still hoping for an update soonForum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Menu on some pages not cachedFrom UberMenu’s docs:
“Some users have reported issues with caching plugins such as W3TC (W3 Total Cache). The symptom is that the menu is intermittently displayed as an unstyled list on cached pages.”…currently looking into this issue as well.
Forum: Plugins
In reply to: [Custom Content Type Manager] [Plugin: Custom Content Type Manager] ConflictThat wasn’t quite there yet.
The function was still adding all these extra post types that really weren’t wanted to the feed, so let’s limit that to just posts and pages.public static function request_filter( $query ) { if (isset($query['feed']) && (!isset($query['post_type']) || $query['post_type'] == 'post' || $query['post_type'] == 'page' || $query['post_type'] == array('post' => 'post') || $query['post_type'] == array('page' => 'page') )) { $args = array( 'public' => true); // array('exclude_from_search'=>false); // ugh. WP has bad support here. $post_types = get_post_types($args); unset($post_types['revision']); unset($post_types['nav_menu_item']); if (defined('CCTM_DEBUG') && CCTM_DEBUG == true) { $myFile = "/tmp/cctm.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); fwrite($fh, 'Request post-types:'. print_r($post_types, true)); fclose($fh); } /* Old foreach foreach ($post_types as $pt) { if('page' == $pt && self::get_setting('pages_in_rss_feed')) { // Leave pages in. } elseif($pt == 'post') { // Do nothing. Posts are always included in the RSS feed. } // Exclude it if it was specifically excluded. elseif (!isset(self::$data['post_type_defs'][$pt]['include_in_rss']) || !self::$data['post_type_defs'][$pt]['include_in_rss']) { unset($post_types[$pt]); } } */ foreach(self::$data['post_type_defs'] as $key => $pt) { if('page' == $pt && self::get_setting('pages_in_rss_feed')) { // Leave pages in. } elseif($pt == 'post') { // Do nothing. Posts are always included in the RSS feed. } // Exclude it if it was specifically excluded. elseif (!isset($pt['include_in_rss']) || !$pt['include_in_rss']) { unset($post_types[$key]); } } $query['post_type'] = $post_types; }
Forum: Plugins
In reply to: [Custom Content Type Manager] [Plugin: Custom Content Type Manager] ConflictHow about we replace that foreach loop with something that only uses custom post types actually a part of CCTM?
For example:
foreach(self::$data['post_type_defs'] as $pt) { if('page' == $pt && self::get_setting('pages_in_rss_feed')) { // Leave pages in. } elseif($pt == 'post') { // Do nothing. Posts are always included in the RSS feed. } // Exclude it if it was specifically excluded. elseif (!isset($pt['include_in_rss']) || !$pt['include_in_rss']) { unset($post_types[$pt]); } }
Forum: Plugins
In reply to: [Custom Content Type Manager] [Plugin: Custom Content Type Manager] ConflictChange that.
/includes/CCTM.php
line 2253This kills ALL POST TYPES that aren’t specifically registered with CCTM.
Forum: Plugins
In reply to: [Secure Files] [Plugin: Secure Files] Uploading ErrorWhat plugin are you using, if you don’t mind me asking?
Forum: Plugins
In reply to: [Secure Files] [Plugin: Secure Files] Uploading ErrorFind this line:
if (get_bloginfo('version') >= '2.7') { $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files.php'; } else { $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/edit.php?page=secure-files.php'; }
Replace it with the following code:
// Set default for versions older than 2.7 $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/edit.php?page=secure-files.php'; // Set default url for versions up to 2.7 if (get_bloginfo('version') >= '2.7') { $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files.php'; } // Set default url for versions greater than 3 if (get_bloginfo('version') >= '3') { $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files/secure-files.php'; }
Upon further investigation it was because my sidebar was being called within the loop.
Problem solved.
The issue seems to be with em_wp_the_title in em-events.php.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Attachment IssueGlad I could help.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Attachment IssueI did some more investigating and got it to work!
comment out the following lines in classes.php:
if ( false === strpos( $mail_template['attachments'], "[${name}]" ) ) continue;
I believe this was checking to make sure the attachments matched up with the uploaded files, but it just plain doesn’t work.