CoreFiles by mySites.guru
view-transitions.php30 lines, 602 bytes, from wordpress-7.1.4.zip
Raw History Compare with 7.1.3
md5
d51f3ac3a5ac981cd13efd4c42135988
sha1
b66dd60d4d0fc763ba7927aebb22ce19f1b0ea31
sha256
2295af1d4d7c1c666c53d3eda143c7403db05960067c03c464a22f72b3b20740
<?php
/**
 * View Transitions API.
 *
 * @package WordPress
 * @subpackage View Transitions
 * @since 7.0.0
 */

/**
 * Enqueues View Transitions CSS for the admin.
 *
 * @since 7.0.0
 */
function wp_enqueue_view_transitions_admin_css(): void {
	wp_enqueue_style( 'wp-view-transitions-admin' );
}

/**
 * Gets the CSS for View Transitions in the admin.
 *
 * @since 7.0.0
 *
 * @return string The CSS.
 */
function wp_get_view_transitions_admin_css(): string {
	$affix = SCRIPT_DEBUG ? '' : '.min';
	$path  = ABSPATH . "wp-admin/css/view-transitions{$affix}.css";
	return file_get_contents( $path );
}

The same content is in 36 releases, WordPress 7.0-beta1 to 7.2-beta1. See them all, or every version of this file.