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:
@ -145,7 +145,7 @@ class Plugin_Limits {
|
||||
<span class="dashicons-wu-flash wu-align-text-bottom"></span>%s
|
||||
</span>
|
||||
</span>',
|
||||
__('Always Loaded', 'wp-ultimo')
|
||||
__('Always Loaded', 'wp-multisite-waas')
|
||||
);
|
||||
}
|
||||
|
||||
@ -160,8 +160,8 @@ class Plugin_Limits {
|
||||
'type' => $plugin_file,
|
||||
]
|
||||
),
|
||||
__('Upgrade to unlock', 'wp-ultimo'),
|
||||
__('Upgrade to unlock', 'wp-ultimo')
|
||||
__('Upgrade to unlock', 'wp-multisite-waas'),
|
||||
__('Upgrade to unlock', 'wp-multisite-waas')
|
||||
);
|
||||
|
||||
$actions['upgrade'] = $upgrade;
|
||||
@ -196,7 +196,7 @@ class Plugin_Limits {
|
||||
unset($plugins[ $plugin_slug ]);
|
||||
}
|
||||
|
||||
if (str_starts_with($plugin_slug, 'wp-ultimo')) {
|
||||
if (str_starts_with($plugin_slug, 'wp-multisite-waas')) {
|
||||
unset($plugins[ $plugin_slug ]);
|
||||
}
|
||||
|
||||
@ -236,7 +236,7 @@ class Plugin_Limits {
|
||||
$plugin_limits = wu_get_current_site()->get_limitations()->plugins;
|
||||
|
||||
foreach ($plugins as $plugin_slug => $timestamp) {
|
||||
if (str_contains($plugin_slug, 'wp-ultimo')) {
|
||||
if (str_contains($plugin_slug, 'wp-multisite-waas')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ class Plugin_Limits {
|
||||
$plugin_limits = wu_get_current_site()->get_limitations()->plugins;
|
||||
|
||||
foreach ($plugins as $plugin_slug) {
|
||||
if (str_contains((string) $plugin_slug, 'wp-ultimo')) {
|
||||
if (str_contains((string) $plugin_slug, 'wp-multisite-waas')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user