[wp-trac] [WordPress Trac] #36263: When building a shortcode with `wp.shortcode.string()` the `attrs` property is finnicky.

WordPress Trac noreply at wordpress.org
Tue Mar 22 15:07:55 UTC 2016


#36263: When building a shortcode with `wp.shortcode.string()` the `attrs` property
is finnicky.
-------------------------------------------------+-------------------------
 Reporter:  georgestephanis                      |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  low                                  |   Milestone:  Awaiting
Component:  Shortcodes                           |  Review
 Severity:  minor                                |     Version:  trunk
 Keywords:  dev-feedback 2nd-opinion good-       |  Resolution:
  first-bug                                      |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by georgestephanis):

 But perhaps more to your question -- when you're inserting media from the
 media modal in the editor screen into a post body, yes, it fires an ajax
 request to get the shortcode generated by php.  Because legacy reasons.
 But if you're using Editor Views and editing them in JS, that all happens
 client-side, purely in JS.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36263#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list