PluginProbe
Gutenberg / 18.9.0
Gutenberg v18.9.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
gutenberg / lib / experimental / font-face / bc-layer / class-gutenberg-fonts-api-bc-layer.php

class-gutenberg-fonts-api-bc-layer.php in Gutenberg 18.9.0, at lib/experimental/font-face/bc-layer/class-gutenberg-fonts-api-bc-layer.php

50 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Fonts API BC Layer helpers.
4 *
5 * BACKPORT NOTE: Do not backport this file to Core.
6 * This file is now part of the API's Backwards-Compatibility (BC) layer.
7 *
8 * @package Gutenberg
9 * @subpackage Fonts API
10 * @since 15.7.0
11 */
12
13 /**
14 * Class Gutenberg_Fonts_API_BC_Layer
15 *
16 * BACKPORT NOTE: Do not backport this file to Core.
17 *
18 * @since X.X.X
19 * @deprecated 16.3.0 Fonts API is not supported.
20 */
21 class Gutenberg_Fonts_API_BC_Layer {
22
23 /**
24 * Determines if the given fonts array is the deprecated array structure.
25 *
26 * @since X.X.X
27 * @deprecated 16.3.0 Structure check is not functional.
28 *
29 * @return bool False.
30 */
31 public static function is_deprecated_structure() {
32 _deprecated_function( __METHOD__, 'Gutenberg 16.3.0' );
33 return false;
34 }
35
36 /**
37 * Migrates deprecated fonts structure into new API data structure,
38 * i.e. variations grouped by their font-family.
39 *
40 * @since X.X.X
41 * @deprecated 16.3.0 Migrate is not supported.
42 *
43 * @return array Empty array.
44 */
45 public static function migrate_deprecated_structure() {
46 _deprecated_function( __METHOD__, 'Gutenberg 16.3.0' );
47 return array();
48 }
49 }
50