Changeset 46600
- Timestamp:
- 10/27/2019 02:05:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-styles-registry.php
r46594 r46600 36 36 * 37 37 * @param string $block_name Block type name including namespace. 38 * @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). 39 * 38 * @param array $style_properties Array containing the properties of the style name, label, 39 * style (name of the stylesheet to be enqueued), 40 * inline_style (string containing the CSS to be added). 40 41 * @return boolean True if the block style was registered with success and false otherwise. 41 42 */ … … 69 70 * @param string $block_name Block type name including namespace. 70 71 * @param string $block_style_name Block style name. 71 *72 72 * @return boolean True if the block style was unregistered with success and false otherwise. 73 73 */ 74 74 public function unregister( $block_name, $block_style_name ) { 75 75 if ( ! $this->is_registered( $block_name, $block_style_name ) ) { 76 /* translators: 1: block name, 2: block style name*/77 $message = sprintf( __( 'Block "%1$s" does not contain a style named "%2$s .".' ), $block_name, $block_style_name );76 /* translators: 1: Block name, 2: Block style name. */ 77 $message = sprintf( __( 'Block "%1$s" does not contain a style named "%2$s".' ), $block_name, $block_style_name ); 78 78 _doing_it_wrong( __METHOD__, $message, '5.3.0' ); 79 79 return false; … … 92 92 * @param string $block_name Block type name including namespace. 93 93 * @param string $block_style_name Block style name. 94 *95 94 * @return array Registered block style properties. 96 95 */ … … 108 107 * @since 5.3.0 109 108 * 110 * @return array Array of arrays containing the registered block styles properties grouped per block, and per style. 109 * @return array Array of arrays containing the registered block styles properties grouped per block, 110 * and per style. 111 111 */ 112 112 public function get_all_registered() { … … 120 120 * 121 121 * @param string $block_name Block type name including namespace. 122 *123 122 * @return array Array whose keys are block style names and whose value are block style properties. 124 123 */ … … 137 136 * @param string $block_name Block type name including namespace. 138 137 * @param string $block_style_name Block style name. 139 *140 138 * @return bool True if the block style is registered, false otherwise. 141 139 */
Note: See TracChangeset
for help on using the changeset viewer.