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