Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18311, comment 37


Ignore:
Timestamp:
02/16/2012 08:49:54 PM (13 years ago)
Author:
sushkov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18311, comment 37

    initial v1  
    77Because changes to handle captions inside an attribute will result in less simple and clear code, we can move the caption text into its own shortcode:
    88
    9 {{{ [caption id="attachment_7" align="alignleft" width="300" caption="ceva"]<img src="pic.jpg" width="300" height="199" />[caption_text]Caption Text[/caption_text][/caption] }}}
     9{{{ [caption id="attachment_7" align="alignleft" width="300"]<img src="pic.jpg" width="300" height="199" />[caption_text]Caption Text[/caption_text][/caption] }}}
    1010
    1111This basically saves us from handling input and escaping data from an attribute, and leaves space for all kind of formatting.