print_emoji_styles

The timeline below displays how wordpress function print_emoji_styles has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * Prints the important emoji-related styles.
 *
 * @since 4.2.0
 * @deprecated 6.4.0 Use wp_enqueue_emoji_styles() instead.
 */
function print_emoji_styles()
{
    _deprecated_function(__FUNCTION__, '6.4.0', 'wp_enqueue_emoji_styles');
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    $type_attr = current_theme_supports('html5', 'style') ? '' : ' type="text/css"';
    ?>
	<style<?php 
    echo $type_attr;
    ?>>
	img.wp-smiley,
	img.emoji {
		display: inline !important;
		border: none !important;
		box-shadow: none !important;
		height: 1em !important;
		width: 1em !important;
		margin: 0 0.07em !important;
		vertical-align: -0.1em !important;
		background: none !important;
		padding: 0 !important;
	}
	</style>
	<?php 
}

WordPress Version: 6.1

/**
 * Prints the important emoji-related styles.
 *
 * @since 4.2.0
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    $type_attr = current_theme_supports('html5', 'style') ? '' : ' type="text/css"';
    ?>
<style<?php 
    echo $type_attr;
    ?>>
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 0.07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
	<?php 
}

WordPress Version: 5.9

/**
 * Print the important emoji-related styles.
 *
 * @since 4.2.0
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    $type_attr = current_theme_supports('html5', 'style') ? '' : ' type="text/css"';
    ?>
<style<?php 
    echo $type_attr;
    ?>>
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 0.07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
	<?php 
}

WordPress Version: 5.5

/**
 * Print the important emoji-related styles.
 *
 * @since 4.2.0
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    $type_attr = current_theme_supports('html5', 'style') ? '' : ' type="text/css"';
    ?>
<style<?php 
    echo $type_attr;
    ?>>
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 .07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
	<?php 
}

WordPress Version: 5.3

/**
 * Print the important emoji-related styles.
 *
 * @since 4.2.0
 *
 * @staticvar bool $printed
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    $type_attr = current_theme_supports('html5', 'style') ? '' : ' type="text/css"';
    ?>
<style<?php 
    echo $type_attr;
    ?>>
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 .07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
	<?php 
}

WordPress Version: 5.1

/**
 * Print the important emoji-related styles.
 *
 * @since 4.2.0
 *
 * @staticvar bool $printed
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    ?>
<style type="text/css">
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 .07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
	<?php 
}

WordPress Version: 4.3

/**
 * Print the important emoji-related styles.
 *
 * @since 4.2.0
 *
 * @staticvar bool $printed
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    ?>
<style type="text/css">
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 .07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
<?php 
}

WordPress Version: 4.2

/**
 * Print the important emoji-related styles.
 *
 * @since 4.2.0
 */
function print_emoji_styles()
{
    static $printed = false;
    if ($printed) {
        return;
    }
    $printed = true;
    ?>
<style type="text/css">
img.wp-smiley,
img.emoji {
	display: inline !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 .07em !important;
	vertical-align: -0.1em !important;
	background: none !important;
	padding: 0 !important;
}
</style>
<?php 
}