Matt
Forum Replies Created
-
Forum: Plugins
In reply to: [WPMU Ldap Authentication] Captcha plugin compatibilitySo the fix with this one was in ldap_auth.php. Original line 53–
add_action('authenticate', 'wpmuLdapUsernamePasswordAuthenticate', 25, 3);
First of all, authenticate is supposed to be for filters, not actions. So the function was changed to add_filter. Second change was to change the priority to 15. Captcha uses 21 and looks like wordpress uses 30. Updated line:
add_filter('authenticate', 'wpmuLdapUsernamePasswordAuthenticate', 15, 3);
Forum: Plugins
In reply to: [Captcha] Captcha accepts any answerSorry, forgot about another login plugin that I use–
So this one is the culprit. I assume it’s a filter/action priority issue. Any ideas where I can look?
Forum: Themes and Templates
In reply to: [Hueman] Shortcodes and Child Themecool, thanks
Yes I realize it’s tricky and also noticed yours was one of the few if not only (recent) one to attempt it. I appreciate the effort.
And yes I use your media cleaner as well. Haven’t had any issues with that except it saying a file wasn’t in use when it was (and linked normally in a post). That has only happened once or twice though. I am new to wordpress (but experienced php coder) and in the process of migrating an entire site to it.
well one issue is it seems like it automatically renames the file and posts when on the edit media screen no matter what the setting is. It should do neither or both if option is set. However, I think the real issue is at some point with some operation a file can get renamed and the links to it on posts do not get updated. I don’t see why you would ever want to rename a file without also searching and updating the posts involved.
Forum: Plugins
In reply to: [Captcha] Captcha accepts any answerSorry, forgot about another login plugin that I use–
After removing the plugin and deciding not to use it anymore I tried to maybe use it just without the auto-rename turned on. When I went to test changing the title on the “Edit Media” page it still renamed the file but seems like it did rename it on the post this time. I turned the auto-rename-on-save back on and it still worked.
Unfortunately this plugin ended up causing about 20 broken links due to file names changing and not being updated so I have to stop using it.
Forum: Plugins
In reply to: [Publish View] Compatibility with other pluginsedit: Looks like $post doesn’t get updated with the latest draft status. So I modified it to reget the post before checking:
function publish_view_redirect($location) { global $post; if (isset($_POST['publishview'])) { $updated_post = get_post($post->ID); if($updated_post->post_status != 'auto-draft' && $updated_post->post_status != 'draft') { $location = get_permalink($post->ID); } } return $location; } add_filter('redirect_post_location', 'publish_view_redirect');
Forum: Plugins
In reply to: [Media Library Assistant] Can't figure out how to use date_querySo here is the code I ended up with:
<code>[mla_gallery tax_query="array(array('taxonomy' => 'attachment_category','field' => 'slug', 'terms' => 'media-docs-budget'))" date_query="array(array('after' => '-12 months'))" mla_style=none mla_markup=mla-file-list-ul post_parent=all orderby=date order=desc post_mime_type=all link=file]</code>
However, I still wasn’t getting any results (works without the date_query though). Then, using mla_debug=true (great feature, btw) I got the SQL query and plugged it in manually and saw it was generating an error:
#1052 – Column ‘post_date’ in where clause is ambiguous
Original query:
SELECT wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_posts AS p2 ON (p2.ID = p2.ID) WHERE 1=1 AND ( ( post_date > '2013-12-18 08:54:21' ) ) AND ( wp_term_relationships.term_taxonomy_id IN (51) ) AND wp_posts.post_type = 'attachment' AND (((wp_posts.post_status = 'inherit') OR (wp_posts.post_status = 'inherit' AND (p2.post_status = 'inherit')))) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC
If I put “wp_posts.” in front of “post_date > ‘2013-12-18 08:54:21′” it works. Well, the manual query works anyway. I’m not sure of the output of the final product as I’m not sure how to plug that into MLA or where to modify the code for it.
Forum: Plugins
In reply to: [WP Activity Log] PHP Error – Alert with code "5001" has not be registeredActually found this in the log:
5001 2014-12-16
09:37:19.073
Activated the plugin Google Captcha (reCAPTCHA) by BestWebSoft installed in D:\path\to\wp/wp-content/plugins/google-captcha/google-captcha.phpForum: Plugins
In reply to: [WP Activity Log] PHP Error – Alert with code "5001" has not be registeredI actually didn’t see the error on screen. Just noticed it in the log. The only plugin I recall getting an error activating was this one when I tried to network activate it. But I can’t recall if I installed that before or after audit log.
edit: had wrong plugin linked
Forum: Plugins
In reply to: [Media Library Assistant] Can't figure out how to use date_queryJust a note – My goal is to pull attachments that have been uploaded within the past month. Not sure if post_date is what I should be using for that.
Forum: Plugins
In reply to: [WP Activity Log] PHP Error – Alert with code "5001" has not be registeredv5.5.19
Forum: Plugins
In reply to: [WP Activity Log] PHP Error – Alert with code "5001" has not be registeredNew install. Latest version.
Forum: Plugins
In reply to: [Require Featured Image] Compatibility with other pluginsresolved