Changeset 55034
- Timestamp:
- 01/06/2023 12:35:57 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-supports/elements.php
r53680 r55034 10 10 * this function returns a string where the id is one instead of being unique. 11 11 * 12 * @param string $stringString containing unique id classes.13 * @return string 12 * @param string $block_content String containing unique id classes. 13 * @return string String where the unique id classes were replaced with "wp-elements-1". 14 14 */ 15 private static function make_unique_id_one( $ string) {16 return preg_replace( '/wp-elements-[a-zA-Z0-9]+/', 'wp-elements-1', $ string);15 private static function make_unique_id_one( $block_content ) { 16 return preg_replace( '/wp-elements-[a-zA-Z0-9]+/', 'wp-elements-1', $block_content ); 17 17 } 18 18
Note: See TracChangeset
for help on using the changeset viewer.