- Timestamp:
- 08/21/2023 05:49:09 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-classic-to-block-menu-converter.php
r56257 r56422 21 21 * 22 22 * @param WP_Term $menu The Menu term object of the menu to convert. 23 * @return string the serialized and normalized parsed blocks. 23 * @return string|WP_Error The serialized and normalized parsed blocks on success, 24 * an empty string when there are no menus to convert, 25 * or WP_Error on invalid menu. 24 26 */ 25 27 public static function convert( $menu ) { … … 35 37 36 38 if ( empty( $menu_items ) ) { 37 return array();39 return ''; 38 40 } 39 41
Note: See TracChangeset
for help on using the changeset viewer.