Skip to content

Commit fc64f71

Browse files
authored
Merge pull request #719 from 10up/enhancement/710
Removed type declaration from the `attachment_is_pdf()` parameter.
2 parents ceff576 + 5d12151 commit fc64f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/Classifai/Helpers.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,10 @@ function get_modified_image_source_url( int $post_id ) {
279279
/**
280280
* Check if attachment is PDF document.
281281
*
282-
* @param \WP_Post $post Post object for the attachment being viewed.
282+
* @param int|\WP_Post $post Post object for the attachment being viewed.
283283
* @return bool
284284
*/
285-
function attachment_is_pdf( \WP_Post $post ): bool {
285+
function attachment_is_pdf( $post ): bool {
286286
$mime_type = get_post_mime_type( $post );
287287
$matched_extensions = explode( '|', array_search( $mime_type, wp_get_mime_types(), true ) );
288288

0 commit comments

Comments
 (0)