israelshirk
Forum Replies Created
-
I’ll see if I have time to throw something together later this week.
That’s disappointing.
I went ahead and tested with some other versions of PHP other than 5.4; it did the same thing. Again, here is some simple code that demonstrates the issue. It can be plugged into any working functions.php in a matter of several seconds to show the issue at hand.
function twenty_four($something) { error_log( 'The save post action ran an action with priority 24!' ); } function ninety_nine($something) { error_log( 'This never runs unless you have more than 5 other actions that don\'t run before it!' ); } add_action( 'save_post', 'twenty_four', 24, 1 ); add_action( 'save_post', 'ninety_nine', 99, 1 );Commenting out the offending remove_actions lines in your plugin’s code fixes the issues and causes WordPress’s internal functions to work as expected and documented.
The choice of whether to fix or not is obviously up to you guys. I’d be glad to submit a patch if it sounded like your dev would accept it, but it sounds like that’s a pretty grand wish 😉
the events calendar tec save_post action does not run plugin breaks other plugins plugin breaks my theme save_post action greater than 25 does not run save_post action greater than twenty five does not run bug in events calendar broken fail help why doesn’t tec work
Hey Jonah –
That was actually the very first of several dozen tests I did. Was your dev unable to duplicate the behavior using the code I provided?
An action defined by:
add_action( ‘save_post’, ‘some_function’, 99, 1 );
will not be called.Thanks!
IsraelForum: Plugins
In reply to: Modifying search form and querying non-wordpress additional tablesSorry, that got modded out. Good luck.
Forum: Plugins
In reply to: Modifying search form and querying non-wordpress additional tablesMost of it came from here fwiw –
http://codex.wordpress.org/Custom_Queries#Keyword_Search_In_Plugin_TableForum: Plugins
In reply to: Modifying search form and querying non-wordpress additional tablesI’ve got some code you can hack around with/use for reference.
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Slowdowns with Super Cache (during garbage cleanups)We did that and it resulted in much slower page loads across the board… The issue then is that we have a *very* large distribution of which pages are hit, somewhat different from the normal distribution curve where recent posts are significantly more likely to be hit.
I might try to take a look and see if there’s a more efficient way to handle some of the cleanup… hmmmm…