Docs: Standardise the type name for booleans and integers.

This brings these docs inline with the documentation standards.

Props ravipatel, justinahinon

Fixes #51426


git-svn-id: https://develop.svn.wordpress.org/trunk@49120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2020-10-10 20:00:30 +00:00
parent 6917c731f8
commit 6b1440e29a
25 changed files with 49 additions and 49 deletions
+2 -2
View File
@@ -812,7 +812,7 @@ function block_version( $content ) {
* @param array $style_properties Array containing the properties of the style name,
* label, style (name of the stylesheet to be enqueued),
* inline_style (string containing the CSS to be added).
* @return boolean True if the block style was registered with success and false otherwise.
* @return bool True if the block style was registered with success and false otherwise.
*/
function register_block_style( $block_name, $style_properties ) {
return WP_Block_Styles_Registry::get_instance()->register( $block_name, $style_properties );
@@ -825,7 +825,7 @@ function register_block_style( $block_name, $style_properties ) {
*
* @param string $block_name Block type name including namespace.
* @param array $block_style_name Block style name.
* @return boolean True if the block style was unregistered with success and false otherwise.
* @return bool True if the block style was unregistered with success and false otherwise.
*/
function unregister_block_style( $block_name, $block_style_name ) {
return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );