7 | | * `wp_get_theme()` is replaced with `wp_get_theme()->get( 'Name' )`. I thought `wp_get_theme()` returns an object and not the theme name, so I was confused for a bit here. However, looking at [20039] / #20138, the `WP_Theme` class has a `__toString()` method, so this should work as expected. Still, using `::get( 'Name' )` explicitly would avoid the confusion, and that's what we use in other instances, e.g. in `get_theme_mods()`, `remove_theme_mods()`, or the deprecated `get_current_theme()` function. |
| 7 | * `wp_get_theme()` is replaced with `wp_get_theme()->get( 'Name' )`. I thought `wp_get_theme()` returns the theme object and not the theme name, so I was confused for a bit here. However, looking at [20039] / #20138, the `WP_Theme` class has a `__toString()` method, so this should work as expected. Still, using `wp_get_theme()->get( 'Name' )` explicitly would avoid the confusion, and that's what we use in other instances, e.g. in `get_theme_mods()`, `remove_theme_mods()`, or the deprecated `get_current_theme()` function. |