[wp-trac] [WordPress Trac] #33102: Shortcodes with Quoted Attributes Break Inside of Quoted HTML Attributes

WordPress Trac noreply at wordpress.org
Fri Jul 24 03:18:16 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 kitchin):

 Try this (not tested):
 {{{
 <script type="text/javascript">
 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>
 }}}

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


More information about the wp-trac mailing list