mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Allow legacy values to be passed to the Configurator
This commit is contained in:
parent
be7432a239
commit
9d7bee9403
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ class ConfigFactory {
|
|||
if ( in_array( $location, array( 'shop', 'home' ), true ) ) {
|
||||
$config = array(
|
||||
'layout' => $this->get_or_default( $settings, "pay_later_{$location}_message_layout", 'flex' ),
|
||||
'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black', array( 'black', 'blue', 'white', 'white-no-border' ) ),
|
||||
'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1', array( '8x1', '20x1' ) ),
|
||||
'color' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_color", 'black' ),
|
||||
'ratio' => $this->get_or_default( $settings, "pay_later_{$location}_message_flex_ratio", '8x1' ),
|
||||
);
|
||||
} elseif ( $location !== 'woocommerceBlock' ) {
|
||||
$config = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue