Timeline for basic shortcode - Why 1st paragraph not wrapped in p tag, but 2nd is
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 9, 2014 at 5:34 | comment | added | bosco |
Huh. You're right - that is something funky! I can't honestly account for that... I don't believe that that this is an intended product of the wpautop() function... you may have stumbled across a bug, unless this is how the core devs have chosen to maintain that whitespace - I'll have to look into this all further...
|
|
Mar 7, 2014 at 1:25 | comment | added | gstricklind |
But why would the first <p></p> be empty? Should it not be there then?
|
|
Mar 7, 2014 at 1:21 | comment | added | bosco |
On a side note, I copied and pasted that example verbatim, but it really should have quotation marks around the $some_long_text string; in it's present form it is not valid PHP.
|
|
Mar 7, 2014 at 1:20 | history | edited | bosco | CC BY-SA 3.0 |
added 196 characters in body
|
Mar 7, 2014 at 1:14 | history | edited | bosco | CC BY-SA 3.0 |
added 196 characters in body
|
Mar 7, 2014 at 1:03 | history | answered | bosco | CC BY-SA 3.0 |