Uname: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Software: Apache
PHP version: 5.4.45 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.91.62
Your Ip: 216.73.217.122
User: matthif (139342) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : post-formats.php
<?php
/**
 * Shims for changes to post formats until they are merged in all
 * versions of WordPress which Gutenberg supports.
 *
 * @package gutenberg
 */

/**
 * Registers the extension of the WP_REST_Posts_Controller class,
 * to add support for post formats.
 */
function gutenberg_post_format_rest_posts_controller( $args ) {
	/**
	 * This hook runs before support values are available via `post_type_supports`.
	 * Check registration arguments for REST API controller override.
	 */
	if ( ! empty( $args['supports'] ) && in_array( 'post-formats', $args['supports'], true ) ) {
		$args['rest_controller_class'] = 'Gutenberg_REST_Posts_Controller_6_7';
	}

	return $args;
}
add_filter( 'register_post_type_args', 'gutenberg_post_format_rest_posts_controller', 10 );
© 2026 XylotrechusZ