[wp-trac] [WordPress Trac] #33099: redirect javascript will not fire

WordPress Trac noreply at wordpress.org
Thu Jul 23 13:52:34 UTC 2015


#33099: redirect javascript will not fire
---------------------------+-----------------------------
 Reporter:  SaintsSQPNcom  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  4.2.3
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 simple script i've been using for years and several WP versions no longer
 works after tonight's upgrade. it auto-forwards the appropriate file for
 today's date based on user's machine

 <script language="JavaScript"><!--
 var dt=new Date();
 var mm=dt.getMonth();
 var dd=dt.getDate();
 var aryMn = ['january', 'february', 'march', 'april', 'may', 'june',
 'july', 'august', 'september', 'october', 'november', 'december'];
 self.location.href=dd+"-"+aryMn[mm];
 //--></script>

 after update it just sits on the page that hosts the script

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33099>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list