willgladstone
Forum Replies Created
-
Forum: Plugins
In reply to: [Limit a post title to X characters] Custom Post TypesJust updated the plugin so you should grab a more recent copy. I’m not sure what you mean by when you write nothing is happening. Is the meta box appearing on the right?
Forum: Plugins
In reply to: [Limit a post title to X characters] Custom Post TypesI Added in custom post types here.
https://github.com/willgladstone/Limit-Title-Characters
Not sure if this plugin is unsupported or not anymore.
I put a wrapper around the js that might fix your ajax issues. It was killing a plugin for me as well, though it was not jetpack.
I also added in the ability to use it on custom post types. If the developer wants to integrate the changes they are pretty quick fixes.
I’m making a javascript call to /wp-admin/admin-ajax.php to dynamically pull post content and update a page. This triggers the built in wordpress ajax handlers. But this ajax call will be flagged as admin. Since your filters are all on front end functions, checking if you are doing an ajax call shouldn’t affect the core set of ajax calls on the admin end. Looking at the $core_actions_get & $core_actions_post variables in /wp-admin/admin-ajax.php, it seems it might be possible there will be issues with get-tagcloud & get-comments but looking at them further it seems like it should be ok with the filters you are setting hooks with.
As a workaround, I’ve just set the filters externally in my functions.php file but it would be nice if the content that was filtered within the plugin.