Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -31,7 +31,7 @@ if ( ! defined('ABSPATH')) {
|
||||
*/
|
||||
$dynamic_part = '<strong id="wu-your-site" v-html="site_url ? site_url : \'yoursite\'">';
|
||||
// This is used on the yoursite.network.com during sign-up
|
||||
$dynamic_part .= isset($signup->results['blogname']) ? $signup->results['blogname'] : __('yoursite', 'wp-ultimo');
|
||||
$dynamic_part .= $signup->results['blogname'] ?? __('yoursite', 'wp-ultimo');
|
||||
$dynamic_part .= '</strong>';
|
||||
|
||||
$site_url = preg_replace('#^https?://#', '', WU_Signup()->get_site_url_for_previewer());
|
||||
|
@ -21,24 +21,24 @@ if ( ! defined('ABSPATH')) {
|
||||
|
||||
// Get all available plans
|
||||
$plans = wu_get_products(
|
||||
array(
|
||||
[
|
||||
'type' => 'plan',
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
// Render the selector
|
||||
wu_get_template(
|
||||
'legacy/signup/pricing-table/pricing-table',
|
||||
array(
|
||||
[
|
||||
'plans' => $plans,
|
||||
'signup' => $signup,
|
||||
'current_plan' => false,
|
||||
'is_shortcode' => false,
|
||||
'atts' => array(
|
||||
'atts' => [
|
||||
'primary_color' => '#00a1ff', // wu_get_setting('primary-color', '#00a1ff'),
|
||||
'accent_color' => '#78b336', // wu_get_setting('accent-color', '#78b336'),
|
||||
'default_pricing_option' => 1, // wu_get_setting('default_pricing_option', 1),
|
||||
'show_selector' => true,
|
||||
),
|
||||
)
|
||||
],
|
||||
]
|
||||
);
|
||||
|
Reference in New Issue
Block a user