Skip to content

Commit

Permalink
Improve docblock comments, remove extra line
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecoder committed Feb 7, 2024
1 parent 4c072e2 commit dca7e40
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -243,7 +243,7 @@ public function validate_create_font_face_settings( $value, $request ) {
* @since 6.5.0
*
* @param string $value Encoded JSON string of font face settings.
* @return array Decoded array of font face settings.
* @return array Decoded and sanitized array of font face settings.
*/
public function sanitize_font_face_settings( $value ) {
// Settings arrive as stringified JSON, since this is a multipart/form-data request.
Expand Down Expand Up @@ -841,7 +841,6 @@ protected function prepare_item_for_database( $request ) {
* @since 6.5.0
*
* @param string $value Font face src that is a URL or the key for a $_FILES array item.
*
* @return string Sanitized value.
*/
protected function sanitize_src( $value ) {
Expand All @@ -855,7 +854,7 @@ protected function sanitize_src( $value ) {
* @since 6.5.0
*
* @param array $file Single file item from $_FILES.
* @return array|WP_Error Array containing uploaded file attributes on success, or error on failure.
* @return array|WP_Error Array containing uploaded file attributes on success, or WP_Error object on failure.
*/
protected function handle_font_file_upload( $file ) {
add_filter( 'upload_mimes', array( 'WP_Font_Utils', 'get_allowed_font_mime_types' ) );
Expand Down

0 comments on commit dca7e40

Please sign in to comment.