Skip to content

Commit

Permalink
adgasdgsdg
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Dec 16, 2024
1 parent 6cb34d6 commit 87621aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/plugins/wpcomsh/feature-plugins/managed-themes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php // phpcs:disable
/**
* Managed themes file.
*
Expand Down Expand Up @@ -51,7 +51,9 @@ function wpcomsh_remove_theme_delete_button( $prepared_themes ) {
* @return string|bool The WP.com premium theme stylesheet or false if theme is not linked or a not premium theme.
*/
function wpcomsh_handle_atomic_premium_theme_option() {
error_log( var_export( 'wpcomsh_handle_atomic_premium_theme_option', true ) );
$stylesheet = wp_get_theme()->get_stylesheet();
error_log( var_export( $stylesheet, true ) );

if ( wpcomsh_is_theme_symlinked( $stylesheet ) && wpcomsh_is_wpcom_premium_theme( $stylesheet ) ) {
return sprintf( 'premium/%s', $stylesheet );
Expand All @@ -70,6 +72,7 @@ function wpcomsh_handle_atomic_premium_theme_option() {
* @return bool|\WP_Error
*/
function wpcomsh_jetpack_wpcom_theme_skip_download( $skip_download_filter_result, $theme_slug ) {
error_log( var_export( 'wpcomsh_jetpack_wpcom_theme_skip_download', true ) );
$theme_type = wpcomsh_get_wpcom_theme_type( $theme_slug );

// If we are dealing with a non WPCom theme, don't interfere.
Expand Down
1 change: 1 addition & 0 deletions projects/plugins/wpcomsh/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function wpcomsh_count_child_themes( $template ) {
* @return bool|WP_Error
*/
function wpcomsh_symlink_parent_theme( $stylesheet ) {
error_log(var_export('wpcomsh_symlink_parent_theme', true));
$theme = wp_get_theme( $stylesheet );
$template = $theme->get_template();

Expand Down

0 comments on commit 87621aa

Please sign in to comment.