| 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 |
|