Skip to content

Commit

Permalink
Beta 5 (#215)
Browse files Browse the repository at this point in the history
* clean up headstart skin

* version bump
  • Loading branch information
jhnstn authored Jan 6, 2025
1 parent 531a6b4 commit d2b3c6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions plugin/admin/includes/wpcloud-headstart.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function wpcloud_headstart( WP_Upgrader_Skin $headstart_skin = null, ): bool|WP
}

$headstart_skin->feedback( 'Theme enabled.' );
wpcloud_set_default_logo();
wpcloud_set_default_logo( $headstart_skin );
$headstart_skin->feedback( 'Default logo set.' );

// Add the core category.
Expand Down Expand Up @@ -168,19 +168,21 @@ function wpcloud_headstart( WP_Upgrader_Skin $headstart_skin = null, ): bool|WP
return true;
}


/**
* Set the default logo.
*
* @param WP_Upgrader_Skin $skin The skin to use for the installation.
* @return void
*/
function wpcloud_set_default_logo( ): void {
function wpcloud_set_default_logo( WP_Upgrader_Skin $skin = null ): void {
if ( ! $skin ) {
$skin = new WPCloud_Quiet_Skin();
}
/* Don't do anything if the custom logo is already set. */
$current_logo_id = get_theme_mod( 'custom_logo', -1 );
$current_logo = wp_get_attachment_image( $current_logo_id );
if ( ! empty( $current_logo ) ) {
echo "Logo already set. Skipping...\n";
$skin->feedback( 'Logo already set. Skipping.' );
return;
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/wpcloud-station.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://wp.cloud/
* Text Domain: wpcloud
* Domain Path: /languages
* Version: 1.0.0-beta.4
* Version: 1.0.0-beta.5
*
* @package wpcloud-station
*/
Expand Down
2 changes: 1 addition & 1 deletion theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description: WP Cloud Station is a theme designed for the WP Cloud plugin.
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.0
Version: 1.0
Version: 1.0.0-beta.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

0 comments on commit d2b3c6d

Please sign in to comment.