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

@ -116,7 +116,7 @@ trait WP_CLI {
$sub_command_data['synopsis'][] = [
'name' => 'id',
'type' => 'positional',
'description' => __('The id for the resource.', 'wp-ultimo'),
'description' => __('The id for the resource.', 'wp-multisite-waas'),
'optional' => false,
];
}
@ -131,7 +131,7 @@ trait WP_CLI {
$field = [
'name' => $name,
'description' => wu_get_isset($explanation, 'description', __('No description found.', 'wp-ultimo')),
'description' => wu_get_isset($explanation, 'description', __('No description found.', 'wp-multisite-waas')),
'optional' => ! wu_get_isset($explanation, 'required'),
'type' => 'assoc',
];
@ -150,7 +150,7 @@ trait WP_CLI {
$sub_command_data['synopsis'][] = [
'name' => 'porcelain',
'type' => 'flag',
'description' => __('Output just the id when the operation is successful.', 'wp-ultimo'),
'description' => __('Output just the id when the operation is successful.', 'wp-multisite-waas'),
'optional' => true,
];
}
@ -159,7 +159,7 @@ trait WP_CLI {
$sub_command_data['synopsis'][] = [
'name' => 'format',
'type' => 'assoc',
'description' => __('Render response in a particular format.', 'wp-ultimo'),
'description' => __('Render response in a particular format.', 'wp-multisite-waas'),
'optional' => true,
'default' => 'table',
'options' => [
@ -175,7 +175,7 @@ trait WP_CLI {
$sub_command_data['synopsis'][] = [
'name' => 'fields',
'type' => 'assoc',
'description' => __('Limit response to specific fields. Defaults to id, name', 'wp-ultimo'),
'description' => __('Limit response to specific fields. Defaults to id, name', 'wp-multisite-waas'),
'optional' => true,
'options' => array_merge(['id'], $params),
];
@ -335,7 +335,7 @@ trait WP_CLI {
} else {
$error_message = sprintf(
/* translators: 1. Object class name; 2. Set method name */
__('The %1$s object does not have a %2$s method', 'wp-ultimo'),
__('The %1$s object does not have a %2$s method', 'wp-multisite-waas'),
get_class($item),
$set_method
);