Prep Plugin for release on WordPress.org (#23)
* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
This commit is contained in:
@ -240,7 +240,7 @@ class Template_Previewer {
|
||||
* Check if this is a site template
|
||||
*/
|
||||
if ( ! $selected_template || ($selected_template->get_type() !== Site_Type::SITE_TEMPLATE && ! wu_request('customizer'))) {
|
||||
wp_die(__('This template is not available', 'wp-ultimo'));
|
||||
wp_die(__('This template is not available', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$categories = [];
|
||||
@ -360,7 +360,7 @@ class Template_Previewer {
|
||||
'bg_color' => '#f9f9f9',
|
||||
'button_bg_color' => '#00a1ff',
|
||||
'logo_url' => wu_get_network_logo(),
|
||||
'button_text' => __('Use this Template', 'wp-ultimo'),
|
||||
'button_text' => __('Use this Template', 'wp-multisite-waas'),
|
||||
'preview_url_parameter' => 'template-preview',
|
||||
'display_responsive_controls' => true,
|
||||
'use_custom_logo' => false,
|
||||
@ -394,12 +394,13 @@ class Template_Previewer {
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param string $setting The setting key.
|
||||
* @param mixed $default Default value, if it is not found.
|
||||
* @param mixed $default_value Default value, if it is not found.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function get_setting($setting, $default = false) {
|
||||
|
||||
return wu_get_isset($this->get_settings(), $setting, $default);
|
||||
public function get_setting($setting, $default_value = false) {
|
||||
$settings = wu_get_option(self::KEY, []);
|
||||
return wu_get_isset($settings, $setting, $default_value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user