mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
rename variable
This commit is contained in:
parent
c07862ca68
commit
4b31b443fa
1 changed files with 2 additions and 2 deletions
|
@ -711,8 +711,8 @@ return array(
|
|||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
'description' => __( 'If you use your PayPal account with more than one installation, please use a distinct prefix to separate those installations. Please do not use numbers in your prefix.', 'woocommerce-paypal-payments' ),
|
||||
'default' => ( static function ( array $allowedSymbols ): string {
|
||||
$default_prefix_chars = array_rand( array_flip( $allowedSymbols ), 4 );
|
||||
'default' => ( static function ( array $char_list ): string {
|
||||
$default_prefix_chars = array_rand( array_flip( $char_list ), 4 );
|
||||
$random_prefix = implode( '', $default_prefix_chars ) . '-';
|
||||
$site_domain = parse_url( get_site_url( get_current_blog_id() ), PHP_URL_HOST );
|
||||
return $random_prefix . $site_domain;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue