Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-styles.php

    r38519 r42343  
    8585
    8686    if ( false !== stripos( $data, '</style>' ) ) {
    87         _doing_it_wrong( __FUNCTION__, sprintf(
    88             /* translators: 1: <style>, 2: wp_add_inline_style() */
    89             __( 'Do not pass %1$s tags to %2$s.' ),
    90             '<code>&lt;style&gt;</code>',
    91             '<code>wp_add_inline_style()</code>'
    92         ), '3.7.0' );
     87        _doing_it_wrong(
     88            __FUNCTION__, sprintf(
     89                /* translators: 1: <style>, 2: wp_add_inline_style() */
     90                __( 'Do not pass %1$s tags to %2$s.' ),
     91                '<code>&lt;style&gt;</code>',
     92                '<code>wp_add_inline_style()</code>'
     93            ), '3.7.0'
     94        );
    9395        $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
    9496    }
     
    168170
    169171    if ( $src ) {
    170         $_handle = explode('?', $handle);
     172        $_handle = explode( '?', $handle );
    171173        $wp_styles->add( $_handle[0], $src, $deps, $ver, $media );
    172174    }
Note: See TracChangeset for help on using the changeset viewer.