Skip to content

Commit a64e441

Browse files
authored
Merge branch 'main' into main
2 parents 8823845 + d24ce0c commit a64e441

27 files changed

Lines changed: 717 additions & 29 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Long-form documentation (e.g. "Commands cookbook") can be edited directly.
99

1010
Internal API docs and command pages are generated dynamically from the WP-CLI codebase using the `wp handbook` series of commands.
1111

12-
Before running these commands the bash script `bin/install-packages.sh` should be run to install the latest versions of the non-bundled commands in `bin/packages`. Note `wp` must point to the target WP-CLI instance, i.e. the phar/git that contains the docblocks to be generated against, and should be run with `WP_CLI_PACKAGES_DIR=bin/packages` and `WP_CLI_CONFIG_PATH=/dev/null`.
12+
Before running these commands, the bash script `bin/install_packages.sh` should be run to install the latest versions of the non-bundled commands in `bin/packages`. Note that `wp` must point to the target WP-CLI instance (i.e., the phar or git version that contains the docblocks to be generated against) and should be run with `WP_CLI_PACKAGES_DIR=bin/packages` and `WP_CLI_CONFIG_PATH=/dev/null`.
1313

1414
So for instance to generate all dynamically created documentation against the nightly phar run:
1515

bin/Handbook_Command.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,15 @@ private static function gen_cmd_pages( $cmd, $parent = [], $verbose = false ) {
645645
}
646646
$docs = implode( "\n", $bits );
647647

648+
// Decode HTML entities inside backticks.
649+
$docs = preg_replace_callback(
650+
'/`([^`]*)`/',
651+
function ( $matches ) {
652+
return '`' . html_entity_decode( $matches[1], ENT_QUOTES | ENT_HTML401 ) . '`';
653+
},
654+
$docs
655+
);
656+
648657
// Hack to prevent double encoding in code blocks.
649658
$docs = preg_replace( '/ &lt; /', ' < ', $docs );
650659
$docs = preg_replace( '/ &gt; /', ' > ', $docs );

bin/handbook-manifest.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps.md",
1212
"parent": "references"
1313
},
14+
"behat-tests": {
15+
"title": "Writing Behat Tests for WP-CLI",
16+
"slug": "behat-tests",
17+
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/guides\/behat-tests.md",
18+
"parent": "guides"
19+
},
1420
"bug-reports": {
1521
"title": "Bug Reports",
1622
"slug": "bug-reports",
@@ -341,6 +347,12 @@
341347
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/how-to\/how-to-start-webserver.md",
342348
"parent": "how-to"
343349
},
350+
"figure-out-why-wordpress-is-slow": {
351+
"title": "Figure out why WordPress is slow",
352+
"slug": "figure-out-why-wordpress-is-slow",
353+
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/how-to\/figure-out-why-wordpress-is-slow.md",
354+
"parent": "how-to"
355+
},
344356
"identify-plugin-theme-conflict": {
345357
"title": "Identify a Plugin or Theme Conflict",
346358
"slug": "identify-plugin-theme-conflict",
@@ -371,6 +383,12 @@
371383
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/internal-api.md",
372384
"parent": "references"
373385
},
386+
"licensing": {
387+
"title": "Licensing",
388+
"slug": "licensing",
389+
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/contributions\/licensing.md",
390+
"parent": "contributions"
391+
},
374392
"philosophy": {
375393
"title": "Philosophy",
376394
"slug": "philosophy",

commands/config/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ options:
6161
+------------------+------------------------------------------------------------------+----------+
6262
| key | value | type |
6363
+------------------+------------------------------------------------------------------+----------+
64-
| AUTH_SALT | n:]Xditk+_7&gt;Qi=>BmtZHiH-6/Ecrvl(V5ceeGP:{&gt;?;BT^=[B3-0&gt;,~F5z$(+Q$ | constant |
65-
| SECURE_AUTH_SALT | ?Z/p|XhDw3w}?c.z%|+BAr|(Iv*H%%U+Du&amp;kKR y?cJOYyRVRBeB[2zF-`(&gt;+LCC | constant |
64+
| AUTH_SALT | n:]Xditk+_7>Qi=>BmtZHiH-6/Ecrvl(V5ceeGP:{>?;BT^=[B3-0>,~F5z$(+Q$ | constant |
65+
| SECURE_AUTH_SALT | ?Z/p|XhDw3w}?c.z%|+BAr|(Iv*H%%U+Du&kKR y?cJOYyRVRBeB[2zF-`(&gt;+LCC | constant |
6666
| LOGGED_IN_SALT | +$@(1{b~Z~s}Cs&gt;8Y]6[m6~TnoCDpE&gt;O%e75u}&amp;6kUH!&gt;q:7uM4lxbB6[1pa_X,q | constant |
6767
| NONCE_SALT | _x+F li|QL?0OSQns1_JZ{|Ix3Jleox-71km/gifnyz8kmo=w-;@AE8W,(fP&lt;N}2 | constant |
6868
+------------------+------------------------------------------------------------------+----------+

commands/core/verify-checksums.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Downloads md5 checksums for the current version from WordPress.org, and compares
88

99
For security, avoids loading WordPress when verifying checksums.
1010

11-
If you experience issues verifying from this command, ensure you are passing the relevant `--locale` and `--version` arguments according to the values from the `Dashboard-&gt;Updates` menu in the admin area of the site.
11+
If you experience issues verifying from this command, ensure you are passing the relevant `--locale` and `--version` arguments according to the values from the `Dashboard->Updates` menu in the admin area of the site.
1212

1313
### OPTIONS
1414

commands/find.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ These fields will be displayed by default for each installation:
5858

5959
These fields are optionally available:
6060

61-
* wp_path - Path that can be passed to `--path=&lt;path&gt;` global parameter.
61+
* wp_path - Path that can be passed to `--path=<path>` global parameter.
6262
* db_host - Host name for the database.
6363
* db_user - User name for the database.
6464
* db_name - Database name for the database.

commands/package/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Packages are installed to `~/.wp-cli/packages/` by default. Use the `WP_CLI_PACK
1515

1616
When installing a local directory, WP-CLI simply registers a reference to the directory. If you move or delete the directory, WP-CLI's reference breaks.
1717

18-
When installing a .zip file, WP-CLI extracts the package to `~/.wp-cli/packages/local/&lt;package-name&gt;`.
18+
When installing a .zip file, WP-CLI extracts the package to `~/.wp-cli/packages/local/<package-name>`.
1919

2020
If Github token authorization is required, a GitHub Personal Access Token (https://github.com/settings/tokens) can be used. The following command will add a GitHub Personal Access Token to Composer's global configuration:
2121
composer config -g github-oauth.github.com &lt;GITHUB_TOKEN&gt; Once this has been added, the value used for &lt;GITHUB_TOKEN&gt; will be used for future authorization requests.

commands/profile/eval-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ options:
4242

4343
### EXAMPLES
4444

45-
# Profile from a file `request.php` containing `&lt;?php wp_remote_get( "https://www.apple.com/" );`.
45+
# Profile from a file `request.php` containing `<?php wp_remote_get( "https://www.apple.com/" );`.
4646
$ wp profile eval-file request.php --fields=time,cache_ratio,request_count
4747
+---------+-------------+---------------+
4848
| time | cache_ratio | request_count |

commands/scaffold/block.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ options:
3434
\---
3535

3636
[\--theme]
37-
: Create files in the active theme directory. Specify a theme with `--theme=&lt;theme&gt;` to have the file placed in that theme.
37+
: Create files in the active theme directory. Specify a theme with `--theme=<theme>` to have the file placed in that theme.
3838

3939
[\--plugin=&lt;plugin&gt;]
4040
: Create files in the given plugin's directory.

commands/scaffold/cpt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg
2121
: The dashicon to use in the menu.
2222

2323
[\--theme]
24-
: Create a file in the active theme directory, instead of sending to STDOUT. Specify a theme with `--theme=&lt;theme&gt;` to have the file placed in that theme.
24+
: Create a file in the active theme directory, instead of sending to STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme.
2525

2626
[\--plugin=&lt;plugin&gt;]
2727
: Create a file in the given plugin's directory, instead of sending to STDOUT.

0 commit comments

Comments
 (0)