-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump add_filter "do_shortcode" to priority 11, follow core #13
base: master
Are you sure you want to change the base?
Conversation
See https://github.com/WordPress/WordPress/blob/3.8.1/wp-includes/shortcodes.php#L388 Because shortcode_unautop() is seriously lacking [1], sufficient cause exists to replace this function with a custom plugin until core gets better. Putting everything on priority 10 in GC creates unnecessary filter ordering problems when replacing built-in shortcode_unautop(), meaning one would also have to remove and re-add GC's "do_shortcode" filter, which must always run after "shortcode_unautop". Might as well do the right thing upstream. [1]: http://core.trac.wordpress.org/ticket/14050
I don't really see how this patch will help anything in any way. I could see an argument for something like this:
That would give others better opportunities for hooking in. But, giving
Am I missing something? |
First difference is increased consistency with core. But primary impulse is, right now I have to do:
Instead of just doing:
What can I say, I like less code. Other than that, moving all of them to different priorities has a point, too. I just don't know a reason for playing with wpautop() right now and usually go about things step by small step. |
Enables passing column wrapping decision to content filter via shortcode args
See https://github.com/WordPress/WordPress/blob/3.8.1/wp-includes/shortcodes.php#L388
Because shortcode_unautop() is seriously lacking 1, sufficient cause
exists to replace this function with a custom plugin until core gets
better. Putting everything on priority 10 in GC creates unnecessary
filter ordering problems when replacing built-in shortcode_unautop(),
meaning one would also have to remove and re-add GC's "do_shortcode"
filter, which must always run after "shortcode_unautop". Might as well
do the right thing upstream.