Skip to content

Commit 62ff596

Browse files
authored
Merge pull request #479 from xwp/feature/439-theme-url
Remove theme_url hook and use WP.org theme download url
2 parents db91f05 + 9e78e44 commit 62ff596

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Diff for: php/class-onboarding-rest-controller.php

-18
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,6 @@ public function install_theme( $request ) {
146146
include_once ABSPATH . '/wp-admin/includes/class-wp-upgrader.php';
147147
include_once ABSPATH . '/wp-admin/includes/class-theme-upgrader.php';
148148

149-
// @todo Remove after the theme is published to WP theme repo.
150-
add_filter(
151-
'themes_api',
152-
function( $return, $action, $args ) {
153-
if ( 'theme_information' === $action && isset( $args->slug ) && Plugin::THEME_SLUG === $args->slug ) {
154-
return (object) [
155-
'name' => 'Material Design Google',
156-
'download_link' => 'https://storage.googleapis.com/xwp-mdc/theme/material-design-google.zip',
157-
];
158-
}
159-
160-
return $return;
161-
},
162-
10,
163-
3
164-
);
165-
// @codeCoverageIgnoreEnd
166-
167149
$api = themes_api(
168150
'theme_information',
169151
[

0 commit comments

Comments
 (0)