WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2020 06:00:58 PM (13 months ago)
Author:
desrosj
Message:

Coding standards: Modify escaping functions to avoid potential false positives.

Props xknown, zieladam, peterwilsoncc.
Merges [49375] to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/media.php

    r49215 r49384  
    533533    <script type="text/javascript">
    534534    addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
    535     var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
     535    var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
    536536    isRtl = <?php echo (int) is_rtl(); ?>;
    537537    </script>
Note: See TracChangeset for help on using the changeset viewer.