PluginProbe
Gutenberg / 23.2.2
Gutenberg v23.2.2
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 12.6.0 7.4.0 All 402 releases
gutenberg / lib / experimental / font-face / bc-layer / class-wp-fonts-utils.php

class-wp-fonts-utils.php in Gutenberg 23.2.2, at lib/experimental/font-face/bc-layer/class-wp-fonts-utils.php

74 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Font API's utility helpers.
4 *
5 * @package WordPress
6 * @subpackage Fonts API
7 * @since X.X.X
8 */
9
10 if ( ! class_exists( 'WP_Fonts_Utils' ) ) {
11
12 /**
13 * Utility helpers for the Fonts API.
14 *
15 * @since X.X.X
16 * @deprecated 16.3.0 Fonts API is not supported.
17 */
18 class WP_Fonts_Utils {
19
20 /**
21 * Converts the given font family into a handle.
22 *
23 * @since X.X.X
24 * @deprecated 16.3.0 This method is not supported.
25 *
26 * @return null
27 */
28 public static function convert_font_family_into_handle() {
29 _deprecated_function( __METHOD__, 'Gutenberg 16.3.0' );
30 return null;
31 }
32
33 /**
34 * Converts the given variation and its font-family into a handle.
35 *
36 * @since X.X.X
37 * @deprecated 16.3.0 This method is not supported.
38 *
39 * @return null
40 */
41 public static function convert_variation_into_handle() {
42 _deprecated_function( __METHOD__, 'Gutenberg 16.3.0' );
43 return null;
44 }
45
46 /**
47 * Gets the font family from the variation.
48 *
49 * @since X.X.X
50 * @deprecated 16.3.0 This method is not supported.
51 *
52 * @return null Null.
53 */
54 public static function get_font_family_from_variation() {
55 _deprecated_function( __METHOD__, 'Gutenberg 16.3.0' );
56 return null;
57 }
58
59 /**
60 * Checks if the given input is defined, i.e. meaning is a non-empty string.
61 *
62 * @since X.X.X
63 * @deprecated 16.3.0
64 *
65 * @param string $input The input to check.
66 * @return bool True when non-empty string. Else false.
67 */
68 public static function is_defined( $input ) {
69 _deprecated_function( __METHOD__, 'Gutenberg 16.3.0' );
70 return ( is_string( $input ) && ! empty( $input ) );
71 }
72 }
73 }
74