Skip to content

Commit 4842cc2

Browse files
committed
🐛 Fix bug with login block CSS dependencies
1 parent 00feb3a commit 4842cc2

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

inc/class-wp-rainbow.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function action_init() {
139139
wp_register_style(
140140
'login-block-frontend-css',
141141
plugins_url( $test_block_frontend_path . '.css', __FILE__ ),
142-
[ 'wp-block-button' ],
142+
[],
143143
$test_block_frontend_dependencies['version']
144144
);
145145
register_block_type(
@@ -221,7 +221,7 @@ function ( $agg, $item ) {
221221
/**
222222
* Provide filter for user attributes mapping.
223223
*
224-
* @return array Filtered user attributes mapping
224+
* @return string Filtered user attributes mapping
225225
*/
226226
public function get_user_attributes_mapping_filtered() {
227227
$options = get_option(
@@ -235,7 +235,7 @@ public function get_user_attributes_mapping_filtered() {
235235
/**
236236
* Filter the user attributes mapping for WP Rainbow users.
237237
*
238-
* @param array $default Default user attributes mapping.
238+
* @param string $default Default user attributes mapping.
239239
*/
240240
return apply_filters( 'wp_rainbow_user_attributes_mapping', $options['wp_rainbow_field_user_attributes_mapping'] ?? '' );
241241
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-rainbow",
3-
"version": "0.2.17",
3+
"version": "0.2.18",
44
"description": "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)",
55
"author": "Davis Shaver",
66
"license": "GPL-2.0-or-later",

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== RainbowKit Login (Web3 Integration for Sign-In With Ethereum) ===
22
Contributors: davisshaver
33
Tags: WordPress, web3, SIWE, Ethereum, RainbowKit, Sign-In With Ethereum
4-
Tested up to: 6.0
4+
Tested up to: 6.1
55
Requires at least: 5.9
66
Requires PHP: 7.0
7-
Stable tag: 0.2.17
7+
Stable tag: 0.2.18
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -47,6 +47,9 @@ Find reference implementations of all filters in [example plugin here](https://g
4747

4848
== Changelog ==
4949

50+
= 0.2.18 =
51+
* Fix bug with login block CSS dependencies
52+
5053
= 0.2.17 =
5154
* Fix bug with user_email and user_url fields user meta
5255

0 commit comments

Comments
 (0)