[wp-trac] [WordPress Trac] #33102: Shortcodes with Quoted Attributes Break Inside of Quoted HTML Attributes
WordPress Trac
noreply at wordpress.org
Fri Jul 24 02:42:45 UTC 2015
#33102: Shortcodes with Quoted Attributes Break Inside of Quoted HTML Attributes
--------------------------+------------------------------
Reporter: cgrymala | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.2.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by cooperator_JR):
Buddies, please, look at my shortcode problem,started by 4.2.3 automatic
update:No problems before... 3 years working flawlessly, but now... :-(
Here´s a very simple code to show the ACTUAL DAY/MONTH/YEAR on posts: (
days /months are in Portuguese language ) :
Example: Last updated Post on ""DAY/MONTH/YEAR"" .
{{{
<script type="text/javascript">// <![CDATA[
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000) year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10) daym="0"+daym
var dayarray=new
Array("Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado")
var montharray=new Array("de Janeiro","de Fevereiro","de Março","de
Abril","de Maio","de Junho","de Julho","de Agosto","de Setembro","de
Outubro","de Novembro","de Dezembro")
document.write(""+daym+" "+montharray[month]+", "+year+"")
// ]]></script>
}}}
SCRIPT TESTED=> OK: Click to ZOOM:
[[Image(http://snag.gy/4AgUt.jpg)]]
There´a phrase in Brazil that says: " In a victorious soccer team, we
should not replace great players"... something like "If it's not
broke,don't fix it"
What about now?
If you look at NOW, hundreds of multiple issues because updating 4.2.3, it
seems like putting fire in ROME again...
https://wordpress.org/support/forum/how-to-and-troubleshooting
Please, P-L-E-A-SE! Don´t be proud, just return to the previous version,
where everything was ok.
Sorry my bad English , many thanks.
Replying to [comment:2 markjaquith]:
> Replying to [comment:1 cgrymala]:
> > According to forum reports, replacing the wp-includes/shortcodes.php
file with the version that was in WordPress 4.2.2 fixes this issue, so
I'll be working on diffing the two versions of the file to see if I can
figure out where the bug was introduced.
>
> It was a big, complex change, so I'd recommend '''not''' doing that, for
your own sanity. :-) The info about the particular cases that fail is
'''very''' helpful, however. We're looking into this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33102#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list