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-wp-webfonts-provider.php

class-wp-webfonts-provider.php in Gutenberg 18.9.0, at lib/experimental/font-face/bc-layer/class-wp-webfonts-provider.php

53 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Fonts API: Provider abstract class.
4 *
5 * Part of the backwards-compatibility (BC) layer for all
6 * deprecated publicly exposed methods and functionality.
7 *
8 * This class/file will NOT be backported to Core. Rather for sites
9 * using the previous API, it exists to prevent breakages, giving
10 * developers time to upgrade their code.
11 *
12 * @package WordPress
13 * @subpackage Fonts API
14 * @since X.X.X
15 */
16
17 if ( ! class_exists( 'WP_Webfonts_Provider' ) ) {
18
19 /**
20 * Deprecated abstract class for Fonts API providers.
21 *
22 * BACKPORT NOTE: Do not backport this file to Core.
23 *
24 * @since X.X.X
25 * @deprecated 15.1 Use `WP_Fonts_Provider` instead.
26 * @deprecated 16.3.0 Custom providers are not supported.
27 */
28 abstract class WP_Webfonts_Provider extends WP_Fonts_Provider {
29
30 /**
31 * Fonts to be processed.
32 *
33 * @since X.X.X
34 * @deprecated 15.1 Use WP_Fonts_Provider::$fonts property instead.
35 * @deprecated 16.3.0
36 *
37 * @var array[]
38 */
39 protected $webfonts = array();
40
41 /**
42 * Sets this provider's fonts property.
43 *
44 * @since X.X.X
45 * @deprecated GB 15.1 Use WP_Fonts_Provider::set_fonts() instead.
46 * @deprecated 16.3.0 Set is not supported.
47 */
48 public function set_webfonts() {
49 _deprecated_function( __METHOD__, 'Gutenberg 15.1' );
50 }
51 }
52 }
53