[wp-trac] [WordPress Trac] #32803: get_extended() Loses Container Tags When Opening Tag is in [main]

WordPress Trac noreply at wordpress.org
Sat Jun 27 02:26:47 UTC 2015


#32803: get_extended() Loses Container Tags When Opening Tag is in [main]
--------------------------+------------------------------
 Reporter:  rcgordon      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  4.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rcgordon):

 Replying to [ticket:32803 rcgordon]:

 Sorry, I misformatted the bracketed component of extended. (Hoping
 backslashes help.)

 -----------------------

 get_extended($post->post_content)\['extended'\]) loses container tags that
 were opened in [main] and completed in [extended].

 The missing opening tag should be inserted at the start of the [extended]
 HTML segment and the missing closing tag should be add at the end.

 For instance if there is a <blockquote> tag in the [main] section (prior
 to a <!--more--> comment/tag), and the blockquote completes anywhere
 within or following [extended], that blockquote element is entirely
 missing in the [extended] segment.

 I'm not sure if the Editor section is necessarily where this ticket should
 go. But it concerns the way the editor modifies the final code.

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


More information about the wp-trac mailing list