[wp-trac] [WordPress Trac] #24263: Revision view should display shortcodes the same as the visual editor

WordPress Trac noreply at wordpress.org
Sun May 5 08:41:33 UTC 2013


#24263: Revision view should display shortcodes the same as the visual editor
--------------------------------------+------------------------------
 Reporter:  a.hoereth                 |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Revisions                 |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+------------------------------

Comment (by a.hoereth):

 Replying to [comment:2 adamsilverstein]:
 > Replying to [comment:1 a.hoereth]:
 > > #24263 is a rudimentary migration of the "do shortcode" function from
 [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js#L124
 editor_plugin.js] to the revisions interface.
 > >
 > > It displays the captions nicely, but only when nothing inside the
 caption shortcode changed in any of the compared revisions.
 > >
 > > Todo: Caption should also be displayed visually when newly added or
 only caption text was changed..
 > >
 > > Waiting for dev feedback before further investigating on this
 >
 > works, except this looks like old code, looking for the current code to
 include instead of reproduce
 I think we could also make this happen on the server side. For the visual
 editor the flexibility of JS is needed, for revisions we can also do it
 using PHP with a regex and call to
 [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/media.php?rev=24129#L613 img_caption_shortcode].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24263#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list