Making WordPress.org


Ignore:
Timestamp:
02/22/2019 01:44:18 AM (6 years ago)
Author:
iandunn
Message:

Jetpack Tweaks: Allow URLs in border-image-source properties.

See https://wordpress.slack.com/archives/C08M59V3P/p1550687410005500

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/css-sanitization.php

    r5819 r8316  
    133133 */
    134134function sanitize_urls_in_css_properties( $url, $property ) {
    135     $allowed_properties = array( 'background', 'background-image', 'border-image', 'content', 'cursor', 'list-style', 'list-style-image' );
     135    $allowed_properties = array( 'background', 'background-image', 'border-image', 'border-image-source', 'content', 'cursor', 'list-style', 'list-style-image' );
    136136    $allowed_protocols  = array( 'http', 'https' );
    137137    // todo maybe add permenant warning note that `data` shouldn't be allowed, see #1616:comment:4
Note: See TracChangeset for help on using the changeset viewer.