- Timestamp:
- 08/22/2023 08:57:47 PM (20 months ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-includes/class-wp-classic-to-block-menu-converter.php
r56257 r56426 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.