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:
David Stone
2025-04-14 11:36:46 -06:00
committed by GitHub
parent a31cfcb565
commit d88e50df38
1087 changed files with 12586 additions and 18535 deletions

View File

@ -47,12 +47,12 @@ class Inside_Events_List_Table extends Event_List_Table {
$first_row = [
'id' => [
'icon' => 'dashicons-wu-hash wu-align-middle wu-mr-1',
'label' => __('Event ID', 'wp-ultimo'),
'label' => __('Event ID', 'wp-multisite-waas'),
'value' => $item->get_id(),
],
'slug' => [
'icon' => 'dashicons-wu-bookmark1 wu-align-middle wu-mr-1',
'label' => __('Event Type', 'wp-ultimo'),
'label' => __('Event Type', 'wp-multisite-waas'),
'value' => wu_slug_to_name($item->get_slug()),
],
];
@ -60,7 +60,7 @@ class Inside_Events_List_Table extends Event_List_Table {
$object_initiator = $item->get_initiator();
if ('system' === $object_initiator) {
$value = sprintf('<span class="dashicons-wu-wp-ultimo wu-align-middle wu-mr-1 wu-text-lg"></span><span class="wu-text-gray-600">%s</span>', __('Automatically processed by WP Multisite WaaS', 'wp-ultimo'));
$value = sprintf('<span class="dashicons-wu-wp-ultimo wu-align-middle wu-mr-1 wu-text-lg"></span><span class="wu-text-gray-600">%s</span>', __('Automatically processed by WP Multisite WaaS', 'wp-multisite-waas'));
} elseif ('manual' === $object_initiator) {
$avatar = get_avatar(
$item->get_author_id(),
@ -95,7 +95,7 @@ class Inside_Events_List_Table extends Event_List_Table {
'date_created' => [
'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1',
'label' => '',
'value' => sprintf(__('Processed %s', 'wp-ultimo'), wu_human_time_diff($item->get_date_created(), '-1 day')),
'value' => sprintf(__('Processed %s', 'wp-multisite-waas'), wu_human_time_diff($item->get_date_created(), '-1 day')),
],
]
);