Browse Source

Disco: implemeting changes requested by dotorg review (#6422)

* Disco: tested up to major version

* Disco: rename functions coming from block canvas

* Disco: adding image links and license
Matias Benedetto 2 years ago
parent
commit
ad5a4cd0ed
2 changed files with 20 additions and 9 deletions
  1. 8 8
      disco/functions.php
  2. 12 1
      disco/readme.txt

+ 8 - 8
disco/functions.php

@@ -9,7 +9,7 @@
  */
 
 
-if ( ! function_exists( 'block_canvas_support' ) ) :
+if ( ! function_exists( 'disco_support' ) ) :
 
 	/**
 	 * Sets up theme defaults and registers support for various WordPress features.
@@ -18,7 +18,7 @@ if ( ! function_exists( 'block_canvas_support' ) ) :
 	 *
 	 * @return void
 	 */
-	function block_canvas_support() {
+	function disco_support() {
 
 		// Enqueue editor styles.
 		add_editor_style( 'style.css' );
@@ -27,9 +27,9 @@ if ( ! function_exists( 'block_canvas_support' ) ) :
 
 endif;
 
-add_action( 'after_setup_theme', 'block_canvas_support' );
+add_action( 'after_setup_theme', 'disco_support' );
 
-if ( ! function_exists( 'block_canvas_styles' ) ) :
+if ( ! function_exists( 'disco_styles' ) ) :
 
 	/**
 	 * Enqueue styles.
@@ -38,21 +38,21 @@ if ( ! function_exists( 'block_canvas_styles' ) ) :
 	 *
 	 * @return void
 	 */
-	function block_canvas_styles() {
+	function disco_styles() {
 
 		// Register theme stylesheet.
 		wp_register_style(
-			'block_canvas-style',
+			'disco-style',
 			get_template_directory_uri() . '/style.css',
 			array(),
 			wp_get_theme()->get( 'Version' )
 		);
 
 		// Enqueue theme stylesheet.
-		wp_enqueue_style( 'block_canvas-style' );
+		wp_enqueue_style( 'disco-style' );
 
 	}
 
 endif;
 
-add_action( 'wp_enqueue_scripts', 'block_canvas_styles' );
+add_action( 'wp_enqueue_scripts', 'disco_styles' );

+ 12 - 1
disco/readme.txt

@@ -1,7 +1,7 @@
 === Disco ===
 Contributors: Automattic
 Requires at least: 5.8
-Tested up to: 6.0.1
+Tested up to: 6.0
 Requires PHP: 5.7
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -29,3 +29,14 @@ This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
+
+
+=== Images used in the screenshot of the theme ===
+
+- https://www.rawpixel.com/image/5950118/free-public-domain-cc0-photo
+- https://stocksnap.io/photo/people-girl-9WUDTO989F
+- https://nappy.co/photo/280/bridge
+
+All the images used in the screenshot are licensed under the:
+CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
+https://creativecommons.org/publicdomain/zero/1.0/