- Timestamp:
- 11/23/2021 09:35:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-styles-registry.php
r51154 r52236 18 18 * 19 19 * @since 5.3.0 20 * @var array 20 * 21 * @var array[] 21 22 */ 22 23 private $registered_block_styles = array(); … … 26 27 * 27 28 * @since 5.3.0 29 * 28 30 * @var WP_Block_Styles_Registry|null 29 31 */ … … 31 33 32 34 /** 33 * Registers a block style .35 * Registers a block style for the given block type. 34 36 * 35 37 * @since 5.3.0 … … 72 74 73 75 /** 74 * Unregisters a block style. 76 * Unregisters a block style of the given block type. 77 * 78 * @since 5.3.0 75 79 * 76 80 * @param string $block_name Block type name including namespace. … … 95 99 96 100 /** 97 * Retrieves an array containing the properties of a registered block style.101 * Retrieves the properties of a registered block style for the given block type. 98 102 * 99 103 * @since 5.3.0 … … 116 120 * @since 5.3.0 117 121 * 118 * @return array Array of arrays containing the registered block styles properties grouped per block, 119 * and per style. 122 * @return array[] Array of arrays containing the registered block styles properties grouped by block type. 120 123 */ 121 124 public function get_all_registered() { … … 124 127 125 128 /** 126 * Retrieves registered block styles for a specific block .129 * Retrieves registered block styles for a specific block type. 127 130 * 128 131 * @since 5.3.0 129 132 * 130 133 * @param string $block_name Block type name including namespace. 131 * @return array Array whose keys are block style names and whose valueare block style properties.134 * @return array[] Array whose keys are block style names and whose values are block style properties. 132 135 */ 133 136 public function get_registered_styles_for_block( $block_name ) { … … 139 142 140 143 /** 141 * Checks if a block style is registered .144 * Checks if a block style is registered for the given block type. 142 145 * 143 146 * @since 5.3.0
Note: See TracChangeset
for help on using the changeset viewer.