diff --git a/includes/class-peptide-news-rest-api.php b/includes/class-peptide-news-rest-api.php index 80d4e18..57b75a5 100755 --- a/includes/class-peptide-news-rest-api.php +++ b/includes/class-peptide-news-rest-api.php @@ -104,6 +104,7 @@ class Peptide_News_Rest_API { if ( ! preg_match( '/^\\d{4}-\\d{2}-\\d{2}$/', $value ) ) { return new WP_Error( 'rest_invalid_date', + /* translators: %s: REST API parameter name */ sprintf( __( 'Invalid date format for %s. Expected Y-m-d.', 'peptide-news' ), $param ), array( 'status' => 400 ) );