| @@ -40,8 +40,8 @@ | ||
| 40 | 40 | /** |
| 41 | 41 | * Registers the Icons Registry REST API routes. |
| 42 | 42 | */ |
| 43 | 43 | function gutenberg_register_icon_controller_endpoints() { |
| 44 | - $icons_controller = new WP_REST_Icons_Controller_Gutenberg(); | |
| 45 | - $icons_controller->register_routes(); | |
| 44 | + $icons_registry = new WP_REST_Icons_Controller(); | |
| 45 | + $icons_registry->register_routes(); | |
| 46 | 46 | } |
| 47 | 47 | add_action( 'rest_api_init', 'gutenberg_register_icon_controller_endpoints' ); |