Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Oct 08 #295

Merged
merged 12 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.13.0-alpha.1](https://github.com/Automattic/newspack-block-theme/compare/v1.12.0...v1.13.0-alpha.1) (2024-08-29)


### Features

* **footer:** update template part to use desktop and mobile parts ([#282](https://github.com/Automattic/newspack-block-theme/issues/282)) ([f1ea195](https://github.com/Automattic/newspack-block-theme/commit/f1ea1956e8cbbd521bf6eacb38941dfec2b2167d))

# [1.12.0](https://github.com/Automattic/newspack-block-theme/compare/v1.11.0...v1.12.0) (2024-07-30)


Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Newspack Block Theme functions and definitions
* Version: 1.12.0
* Version: 1.13.0-alpha.1
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
Expand All @@ -16,7 +16,7 @@
define( 'NEWSPACK_BLOCK_THEME_FILE', __FILE__ );
define( 'NEWSPACK_BLOCK_THEME_FILE_PATH', plugin_dir_path( NEWSPACK_BLOCK_THEME_FILE ) );
define( 'NEWSPACK_BLOCK_THEME_URL', plugin_dir_url( NEWSPACK_BLOCK_THEME_FILE ) );
define( 'NEWSPACK_BLOCK_THEME_VERSION', '1.12.0' );
define( 'NEWSPACK_BLOCK_THEME_VERSION', '1.13.0-alpha.1' );
}


Expand Down
26 changes: 3 additions & 23 deletions includes/class-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,9 @@
*/
final class Core {
/**
* The single instance of the class.
*
* @var Core
*/
protected static $instance = null;

/**
* Main Core instance.
* Ensures only one instance of Core is loaded or can be loaded.
*
* @return Core - Main instance.
*/
public static function instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}

/**
* Constructor.
* Initializer.
*/
public function __construct() {
public static function init() {
\add_action( 'after_setup_theme', [ __CLASS__, 'theme_support' ] );
\add_action( 'wp_enqueue_scripts', [ __CLASS__, 'theme_styles' ] );
\add_action( 'enqueue_block_editor_assets', [ __CLASS__, 'editor_scripts' ] );
Expand Down Expand Up @@ -227,4 +207,4 @@ public static function block_pattern_categories() {
}
}

Core::instance();
Core::init();
27 changes: 3 additions & 24 deletions includes/class-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,9 @@
*/
final class Jetpack {
/**
* The single instance of the class.
*
* @var Jetpack
*/
protected static $instance = null;

/**
* Main Jetpack instance.
* Ensures only one instance of Jetpack is loaded or can be loaded.
*
* @return Jetpack - Main instance.
* Initializer.
*/
public static function instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}

/**
* Constructor.
*/
public function __construct() {
public static function init() {
\add_action( 'after_setup_theme', [ __CLASS__, 'theme_support' ] );
\add_filter( 'sharing_show', '__return_false' );
\add_filter( 'sharing_enqueue_scripts', '__return_false' );
Expand All @@ -57,5 +37,4 @@ public static function theme_support() {
\add_theme_support( 'jetpack-geo-location' );
}
}

Jetpack::instance();
Jetpack::init();
Loading