Finalized things with Loudness (#6702)

Co-authored-by: Jeff Ong <jonger4@gmail.com>
This commit is contained in:
Jason Crist 2022-10-27 12:07:25 -04:00 committed by GitHub
parent e852a6b60a
commit 2e779720e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 33 deletions

View file

@ -9,7 +9,7 @@
*/ */
if ( ! function_exists( 'decibel_support' ) ) : if ( ! function_exists( 'loudness_support' ) ) :
/** /**
* Sets up theme defaults and registers support for various WordPress features. * Sets up theme defaults and registers support for various WordPress features.
@ -18,7 +18,7 @@ if ( ! function_exists( 'decibel_support' ) ) :
* *
* @return void * @return void
*/ */
function decibel_support() { function loudness_support() {
// Enqueue editor styles. // Enqueue editor styles.
add_editor_style( 'style.css' ); add_editor_style( 'style.css' );
@ -27,9 +27,9 @@ if ( ! function_exists( 'decibel_support' ) ) :
endif; endif;
add_action( 'after_setup_theme', 'decibel_support' ); add_action( 'after_setup_theme', 'loudness_support' );
if ( ! function_exists( 'decibel_styles' ) ) : if ( ! function_exists( 'loudness_styles' ) ) :
/** /**
* Enqueue styles. * Enqueue styles.
@ -38,7 +38,7 @@ if ( ! function_exists( 'decibel_styles' ) ) :
* *
* @return void * @return void
*/ */
function decibel_styles() { function loudness_styles() {
// Register theme stylesheet. // Register theme stylesheet.
wp_register_style( wp_register_style(
@ -55,9 +55,9 @@ if ( ! function_exists( 'decibel_styles' ) ) :
endif; endif;
add_action( 'wp_enqueue_scripts', 'decibel_styles' ); add_action( 'wp_enqueue_scripts', 'loudness_styles' );
function decibel_init() { function loudness_init() {
if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( 'illustrations' ) ) { if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( 'illustrations' ) ) {
register_block_pattern_category( 'illustrations', array( 'label' => __( 'Illustrations', 'loudness' ) ) ); register_block_pattern_category( 'illustrations', array( 'label' => __( 'Illustrations', 'loudness' ) ) );
} }
@ -71,4 +71,4 @@ function decibel_init() {
); );
} }
add_action( 'init', 'decibel_init' ); add_action( 'init', 'loudness_init' );

View file

@ -1,12 +0,0 @@
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group">
<!-- wp:post-author {"showAvatar":false,"showBio":false,"style":{"typography":{"fontSize":"14px"}}} /-->
<!-- wp:post-date {"isLink":true,"style":{"typography":{"fontSize":"14px"}}} /-->
<!-- wp:post-terms {"term":"category","style":{"typography":{"fontSize":"14px"}}} /-->
<!-- wp:post-terms {"term": "post_tag","style":{"typography":{"fontSize":"14px"}}} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

View file

@ -1,14 +1,14 @@
=== Loudness === === Loudness ===
Contributors: Automattic Contributors: Automattic
Requires at least: 6.0 Requires at least: 6.0
Tested up to: 6.0 Tested up to: 6.1
Requires PHP: 5.7 Requires PHP: 5.7
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description == == Description ==
A theme for music-y stuff A bold, opinionated theme for music and learning.
== Changelog == == Changelog ==

BIN
loudness/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

View file

@ -3,11 +3,11 @@ Theme Name: Loudness
Theme URI: https://wordpress.com/loudness Theme URI: https://wordpress.com/loudness
Author: Automattic Author: Automattic
Author URI: https://automattic.com Author URI: https://automattic.com
Description: A theme for music-y stuff Description: A bold opinionated theme for music and learning
Requires at least: 5.8 Requires at least: 6.0
Tested up to: 5.9 Tested up to: 6.1
Requires PHP: 5.7 Requires PHP: 5.7
Version: 0.0.10 Version: 1.0.0
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loudness Text Domain: loudness

View file

@ -7,13 +7,6 @@
"post" "post"
], ],
"title": "Blank" "title": "Blank"
},
{
"name": "landing-page",
"postTypes": [
"page"
],
"title": "Landing Page"
} }
], ],
"settings": { "settings": {