Changeset 57548 for trunk/src/wp-includes/fonts/class-wp-font-library.php
- Timestamp:
- 02/07/2024 09:18:38 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/fonts/class-wp-font-library.php
r57539 r57548 116 116 * 117 117 * @param string $slug Font collection slug. 118 * @return WP_Font_Collection|WP_Error Font collection object, 119 * or WP_Error object if the font collection doesn't exist. 118 * @return WP_Font_Collection|null Font collection object, or null if the font collection doesn't exist. 120 119 */ 121 120 public function get_font_collection( $slug ) { … … 123 122 return $this->collections[ $slug ]; 124 123 } 125 return n ew WP_Error( 'font_collection_not_found', __( 'Font collection not found.' ) );124 return null; 126 125 } 127 126
Note: See TracChangeset
for help on using the changeset viewer.