HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/epubdjye/www17/wp-content/plugins_bcknd/gutenberg/build/block-library/blocks/cover.php
<?php
/**
 * Server-side rendering of the `core/cover` block.
 *
 * @package WordPress
 */

/**
 * Supports `playsinline` attribute server side for `core/cover`.
 *
 * @param array  $attributes The block attributes.
 * @param string $content HTML content of the block.
 *
 * @return string Rendered HTML of the referenced block.
 */
function gutenberg_render_block_core_cover( $attributes, $content ) {
	if ( isset( $attributes['backgroundType'] ) && 'video' === $attributes['backgroundType'] ) {
		return str_replace( 'autoplay muted', 'autoplay muted playsinline', $content );
	}

	return $content;
}

/**
 * Registers the `core/cover` block.
 */
function gutenberg_register_block_core_cover() {
	register_block_type_from_metadata(
		__DIR__ . '/cover',
		array(
			'render_callback' => 'gutenberg_render_block_core_cover',
		)
	);
}
add_action( 'init', 'gutenberg_register_block_core_cover', 20 );