Docs: Promote many bool types to true or false where only that value is used.

See #51800


git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-01-03 22:02:13 +00:00
parent 374b41ed13
commit 679ccc35e6
59 changed files with 169 additions and 169 deletions

View File

@@ -99,8 +99,8 @@ function generate_block_asset_handle( $block_name, $field_name ) {
*
* @param array $metadata Block metadata.
* @param string $field_name Field name to pick from metadata.
* @return string|bool Script handle provided directly or created through
* script's registration, or false on failure.
* @return string|false Script handle provided directly or created through
* script's registration, or false on failure.
*/
function register_block_script_handle( $metadata, $field_name ) {
if ( empty( $metadata[ $field_name ] ) ) {
@@ -146,8 +146,8 @@ function register_block_script_handle( $metadata, $field_name ) {
*
* @param array $metadata Block metadata.
* @param string $field_name Field name to pick from metadata.
* @return string|boolean Style handle provided directly or created through
* style's registration, or false on failure.
* @return string|false Style handle provided directly or created through
* style's registration, or false on failure.
*/
function register_block_style_handle( $metadata, $field_name ) {
if ( empty( $metadata[ $field_name ] ) ) {