[wp-trac] [WordPress Trac] #33847: add_shortcode enhancement request for optional priority

WordPress Trac noreply at wordpress.org
Sun Sep 13 09:01:13 UTC 2015


#33847: add_shortcode enhancement request for optional priority
-------------------------+-----------------------------
 Reporter:  opajaap      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The request is to add {{{$priority}}} as argumant to {{{ad_shortcode}}} so
 that it will look like:

 {{{<?php add_shortcode( $tag, $func, $priority ); ?>}}}

 The {{{$priority}}} argument ( integer ) should be optional and default to
 the wp system setting, currently being 11.

 This will enable plugin writers to decide if the output of {{{$func}}}
 will pass through the content filters like {{{wpautop}}} or not, by
 setting the priority either lower or higher than 10, hence giving the
 plugin author the control over this issue without generating possible
 conflicts with other shortcodes or filters.

 This will make an end to the discussion whether to change the
 do_shortcode() priority, see https://make.wordpress.org/core/2015/09/04
 /shortcode-roadmap-extended-discussion/#comments

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33847>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list