/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/mu-plugins/normalize-theme.php
18 строк
469 B
Enrique Piqueras
E2E Tests: Fix theme colors and font sizes. (#18761)
04 дек 2019, 23:19
Не верифицирован
04 дек 2019, 23:19
da54d11
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Plugin, Normalize Theme * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-normalize-theme */ /** * Fixes colors and font sizes so that tests * are consistent across different themes. */ function normalize_theme_init() { remove_theme_support( 'editor-color-palette' ); remove_theme_support( 'editor-font-sizes' ); } add_action( 'init', 'normalize_theme_init' );