wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php:153Retrieves a specific icon from the registry.
$namestringarray|WP_Error public function get_icon( $name ) { $registry = WP_Icons_Registry::get_instance(); $icon = $registry->get_registered_icon( $name ); if ( null === $icon ) { return new WP_Error( 'rest_icon_not_found', sprintf( // translators: %s is the name of any user-provided name __( 'Icon not found: "%s".' ), $name ), array( 'status' => 404 ) ); } return $icon; }Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.