WordPress.org

Make WordPress Core

Ticket #38271: 38271.2.diff

File 38271.2.diff, 682 bytes (added by adamsilverstein, 20 months ago)

use yoda conditional

  • src/wp-admin/js/post.js

     
    105105         * Overwrite the content of the Featured Image postbox
    106106         *
    107107         * @param {string} html New HTML to be displayed in the content area of the postbox.
    108          * 
     108         *
    109109         * @global
    110110         */
    111111        WPSetThumbnailHTML = function(html){
     
    506506                        active_post_lock: $('#active_post_lock').val()
    507507                };
    508508
     509                if ( 'undefined' === typeof data.active_post_lock ) {
     510                        return;
     511                }
     512
    509513                if (window.FormData && window.navigator.sendBeacon) {
    510514                        var formData = new window.FormData();
    511515