PluginProbe
Gutenberg / 16.2.0
Gutenberg v16.2.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 12.6.0 All 403 releases
← All changes | lib/class-wp-theme-json-data-gutenberg.php +1 -11 23.7.0 → 16.2.0 View file →
@@ -37,9 +37,9 @@
37 37 *
38 38 * @param array $data Array following the theme.json specification.
39 39 * @param string $origin The origin of the data: default, theme, user.
40 40 */
41 - public function __construct( $data = array( 'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA ), $origin = 'theme' ) {
41 + public function __construct( $data = array(), $origin = 'theme' ) {
42 42 $this->origin = $origin;
43 43 $this->theme_json = new WP_Theme_JSON_Gutenberg( $data, $this->origin );
44 44 }
45 45
@@ -68,15 +68,5 @@
68 68 public function get_data() {
69 69 return $this->theme_json->get_raw_data();
70 70 }
71 71
72 - /**
73 - * Return theme JSON object.
74 - *
75 - * @since 18.5.0
76 - *
77 - * @return WP_Theme_JSON
78 - */
79 - public function get_theme_json() {
80 - return $this->theme_json;
81 - }
82 72 }