WordPress.org

Make WordPress Core

Ticket #32102: 32102.patch

File 32102.patch, 852 bytes (added by ChriCo, 5 years ago)

added check for use_smiles and wp_smiliessearch

  • src/wp-includes/formatting.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    40844084 * @since 4.2.0
    40854085 */
    40864086function print_emoji_styles() {
    4087         static $printed = false;
     4087        global $wp_smiliessearch;
    40884088
     4089        if ( ! get_option( 'use_smilies' ) || empty( $wp_smiliessearch ) ) {
     4090                return;
     4091        }
     4092
     4093        static $printed = false;
    40894094        if ( $printed ) {
    40904095                return;
    40914096        }
     
    41104115}
    41114116
    41124117function print_emoji_detection_script() {
    4113         global $wp_version;
     4118        global $wp_version, $wp_smiliessearch;
     4119
     4120        if ( ! get_option( 'use_smilies' ) || empty( $wp_smiliessearch ) ) {
     4121                return;
     4122        }
     4123
    41144124        static $printed = false;
    41154125
    41164126        if ( $printed ) {