Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #12009, comment 16


Ignore:
Timestamp:
10/09/2012 08:40:36 PM (12 years ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12009, comment 16

    initial v1  
    33Basically, instead of $in_footer = false, have $attr = false.
    44
    5 For backward compatibility, you could do if $attr == true, then $attr = array('in_footer'=>true).
     5For backward compatibility, you could do if $attr === true, then $attr = array('in_footer'=>true).
    66
    77Then, you can have $attr = an array of the various settings, including potential future ones, allowing you to define whether it's in the footer or not, defer or not, async or not, etc.