Skip to content

Commit

Permalink
Fix wrong sprintf's specifier - and leak in some typo corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Apr 6, 2023
1 parent 5be8b32 commit 7e20897
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"lextudio.restructuredtext",
"trond-snekvik.simple-rst",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-italian"
]
}
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
},
"css.validate": false,
"restructuredtext.languageServer.trace.server": "messages",
"restructuredtext.linter.executablePath": "/usr/local/bin/doc8"
"restructuredtext.linter.executablePath": "/usr/local/bin/doc8",
"cSpell.words": [
"endcode",
"helperclass",
"helperfunc",
"runcommand"
]
}
2 changes: 1 addition & 1 deletion wordless/helpers/model_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function new_taxonomy($name, $post_types, $options = array()) {
"edit_item" => sprintf(__("Edit %s", "wl"), $uc_singular),
"update_item" => sprintf(__("Update %s", "wl"), $uc_singular),
"add_new_item" => sprintf(__("Add new %s", "wl"), $uc_singular),
"new_item_name" => sprintf(__("New %n Name", "wl"), $uc_singular),
"new_item_name" => sprintf(__("New %s Name", "wl"), $uc_singular),
"menu_name" => $uc_plural
);

Expand Down
12 changes: 6 additions & 6 deletions wordless/wp-cli-wordless/command.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
class WordlessCommand {
/**
* Create and acrivate a new Wordless theme with the given name
* Create and activate a new Wordless theme with the given name
*
* ## OPTIONS
*
Expand Down Expand Up @@ -49,8 +49,8 @@ public function create($args) {
* backup of your theme or be sure to have a clean GiT state thus
* a simple reset/checkout will eventually save you.
*
* After the updgrade remember to launch `yarn install` in order
* to update `node_modules` based on new pacjage.json.
* After the upgrade remember to launch `yarn install` in order
* to update `node_modules` based on new package.json.
*
* Newer configuration may require you to install an updated node
* version too.
Expand All @@ -60,7 +60,7 @@ public function create($args) {
public function upgrade($args, $assoc_args) {
if (!Wordless::theme_is_upgradable()) {
WP_CLI::error_multi_line([
'It seems you are using a theme created with a Wordless verion < 2',
'It seems you are using a theme created with a Wordless version < 2',
'or maybe you have heavily customized the theme folder structure.',
'We can\'t afford to make an automatic upgrade for you, sorry'
]);
Expand All @@ -75,10 +75,10 @@ public function upgrade($args, $assoc_args) {
$builder = new WordlessThemeBuilder(null, null, intval(0664, 8));

if ( $builder->upgrade_theme_config() ) {
WP_CLI::success( 'Theme succesfully upgraded. Now you can getting started with Wordless2 (https://wordless.readthedocs.io)' );
WP_CLI::success( 'Theme successfully upgraded. Now you can getting started with Wordless2 (https://wordless.readthedocs.io)' );
WP_CLI::log('Remember to run `yarn install` to update node_modules based on new configuration');
} else {
WP_CLI::error( 'Sorry, something went wrong during theme upgarde.' );
WP_CLI::error( 'Sorry, something went wrong during theme upgrade.' );
}
}

Expand Down

0 comments on commit 7e20897

Please sign in to comment.