Chris Abraham
Forum Replies Created
-
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] installation on localhost?I found the solution:
https://help.time.ly/customer/portal/questions/491330-install-without-requiring-ftpForum: Plugins
In reply to: [Street View Comments] [Plugin: Street View Comments] Cool Little PluginNice. Thanks for the publicity ??
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] do not cache iPadExcellent. Thanks Donncha. That works great. Here’s the code for those interested:
function mycache_init() { global $cache_enabled; $isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'); if ($isiPad) $cache_enabled = false; } add_cacheaction('cache_init', 'mycache_init');
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] do not cache iPadAnyone know about this?
I think I’ve found the problem. It’s caused by some sort of conflict with the Adminimize plugin. When I deactivated that plugin, this behavior stopped happening. I didn’t look into the guts of why this is because I can live without Adminimize for now.
Anyone seen any progress with this? It still doesn’t work for me. When I click the “Sync Comments” button it just says “Processing…” and nothing seems to happen.
Forum: Plugins
In reply to: [Plugin: Top Post From Category Widget] Not workingThis discussion was moved to the comments thread here:
https://cjyabraham.com/projects/top-post-from-category-plugin/Forum: Plugins
In reply to: custom fields deleted after editing post using manageableThis was a bug in another plugin I was using. It isn’t a problem with manageable. Please ignore.
Forum: Plugins
In reply to: [Plugin: Manageable] editing post truncates title with a double-quoteI fixed it. Just escaped the title with htmlspecialchars. See:
Index: wp-content/plugins/manageable/manageable.php
===================================================================
— wp-content/plugins/manageable/manageable.php (revision 20741)
+++ wp-content/plugins/manageable/manageable.php (working copy)
@@ -197,7 +197,7 @@
case ‘title’: ?>
<td<?php if($type == ‘page’): ?> class=”page-title”<?php endif; ?>>
<div class=”title”>
– <input type=”text” id=”title-<?php echo $post->ID ?>” value=”<?php echo $post->post_title ?>” />
+ <input type=”text” id=”title-<?php echo $post->ID ?>” value=”<?php echo htmlspecialchars($post->post_title) ?>” />
<label><?php _e(‘Slug’); ?></label><input type=”text” id=”slug-<?php echo $post->ID ?>” value=”<?php echo $post->post_name ?>” class=”slug” />
</div>
<?php if($type == ‘page’): ?>Forum: Fixing WordPress
In reply to: Stripping out [caption] tags?I solved this by adding this:
// get rid of the [caption]s
$text = preg_replace( ‘|\[(.+?)\](.+?\[/\\1\])?|s’, ”, $text );around L102 of the-excerpt-reloaded.php, before the line if($excerpt_length < 0) {
Chris
Forum: Fixing WordPress
In reply to: html stripped from WP 2.6 image captions?I don’t want to input my own html code. I just want the urls and formatting I put on my captions to not disappear when I save the post.