Skip to content

Commit 882a3de

Browse files
authored
Merge pull request #613 from wp-cli/copilot/fix-taxonomy-docs-rendering
2 parents 93c786c + 33c4af4 commit 882a3de

16 files changed

Lines changed: 26 additions & 17 deletions

File tree

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 );

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.

commands/scaffold/plugin-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generates files needed for running PHPUnit tests in a plugin.
55
The following files are generated by default:
66

77
* `phpunit.xml.dist` is the configuration file for PHPUnit.
8-
* `.circleci/config.yml` is the configuration file for CircleCI. Use `--ci=&lt;provider&gt;` to select a different service.
8+
* `.circleci/config.yml` is the configuration file for CircleCI. Use `--ci=<provider>` to select a different service.
99
* `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
1010
* `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite.
1111
* `tests/test-sample.php` is a sample file containing the actual tests.

commands/scaffold/plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The following files are always generated:
1515
The following files are also included unless the `--skip-tests` is used:
1616

1717
* `phpunit.xml.dist` is the configuration file for PHPUnit.
18-
* `.circleci/config.yml` is the configuration file for CircleCI. Use `--ci=&lt;provider&gt;` to select a different service.
18+
* `.circleci/config.yml` is the configuration file for CircleCI. Use `--ci=<provider>` to select a different service.
1919
* `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
2020
* `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite.
2121
* `tests/test-sample.php` is a sample file containing test cases.

0 commit comments

Comments
 (0)