Skip to content

Commit

Permalink
Fixing defaults not being applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldhuereca committed Jan 3, 2023
1 parent bfa000c commit df0d812
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/wppic-blocks.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react'), 'version' => '64b42ff6157b6fe77f0b');
<?php return array('dependencies' => array('react'), 'version' => '19bfab10f7449550f6fc');
2 changes: 1 addition & 1 deletion build/wppic-blocks.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: briKou, ronalfy
Tags: API, plugin, card, theme, block, blocks, gutenberg
Requires at least: 3.7
Tested up to: 6.1
Stable tag: 3.4.1
Stable tag: 3.4.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -107,6 +107,10 @@ This video shows you how:

== Changelog ==

= 3.4.2 =
* Released 2023-01-02
* Fixing defaults not being applied correctly for blocks.

= 3.4.1 =
* Released 2022-12-30
* The Plugin Info Card Query block got a bit of a makeover.
Expand Down Expand Up @@ -395,5 +399,8 @@ This video shows you how:

== Upgrade Notice ==

= 3.4.2 =
Fixing defaults not being applied correctly for blocks.

= 3.4.1 =
The Plugin Info Card Query block got a bit of a makeover. Fixing numerous style and data inconsistencies in the block editor.
2 changes: 1 addition & 1 deletion src/blocks/PluginInfoCard/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const WPPluginInfoCard = ( props ) => {
setType( attributes.type );
setSlug( attributes.slug );

if ( ! attributes.defaultsApplied && 'default' !== attributes.scheme ) {
if ( ! attributes.defaultsApplied && 'default' === attributes.scheme ) {
setAttributes( {
defaultsApplied: true,
scheme: wppic.default_scheme,
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/PluginInfoCardQuery/edit-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const WP_Plugin_Card_Query = ( props ) => {
}

// Apply defaults.
if ( ! attributes.defaultsApplied ) {
if ( ! attributes.defaultsApplied && 'default' === attributes.scheme ) {
setAttributes( {
defaultsApplied: true,
scheme: wppic.default_scheme,
Expand Down
4 changes: 2 additions & 2 deletions wp-plugin-info-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: WP Plugin Info Card displays plugins & themes identity cards in a beautiful box with a smooth rotation effect using WordPress.org Plugin API & WordPress.org Theme API. Dashboard widget included.
* Author: Brice CAPOBIANCO, Ronald Huereca
* Author URI: http://b-website.com/
* Version: 3.4.1
* Version: 3.4.2
* Domain Path: /langs
* Text Domain: wp-plugin-info-card
*/
Expand All @@ -23,7 +23,7 @@
* Define constants
***************************************************************/
if ( ! defined( 'WPPIC_VERSION' ) ) {
define( 'WPPIC_VERSION', '3.4.1' );
define( 'WPPIC_VERSION', '3.4.2' );
}
if ( ! defined( 'WPPIC_PATH' ) ) {
define( 'WPPIC_PATH', plugin_dir_path( __FILE__ ) . '/src/' );
Expand Down

0 comments on commit df0d812

Please sign in to comment.