WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/01/2014 10:33:55 PM (6 years ago)
Author:
ocean90
Message:

To improve troubleshooting use esc_html() for a failed embed.

see #28195.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r29271 r29354  
    26562656        wp_send_json_error( array(
    26572657            'type' => 'not-embeddable',
    2658             'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_url( $url ) . '</code>' ),
     2658            'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ),
    26592659        ) );
    26602660    }
     
    26862686        wp_send_json_error( array(
    26872687            'type' => 'not-ssl',
    2688             'message' => sprintf( __( 'Preview not available. %s cannot be embedded securely.' ), '<code>' . esc_url( $url ) . '</code>' ),
     2688            'message' => sprintf( __( 'Preview not available. %s cannot be embedded securely.' ), '<code>' . esc_html( $url ) . '</code>' ),
    26892689        ) );
    26902690    }
Note: See TracChangeset for help on using the changeset viewer.