PluginProbe
ActivityPub / 8.0.2
ActivityPub v8.0.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/cache/class-file.php +1 -1 9.2.08.0.2 View file →
@@ -567,9 +567,9 @@
567 567
568 568 // Method 4: Ensure file extension matches MIME type.
569 569 $ext = \pathinfo( $file_path, PATHINFO_EXTENSION );
570 570
571 - if ( \strtolower( $ext ) !== $expected_ext ) {
571 + if ( strtolower( $ext ) !== $expected_ext ) {
572 572 $new_path = \preg_replace( '/\.[^.]+$/', '.' . $expected_ext, $file_path );
573 573 if ( empty( $new_path ) || $new_path === $file_path ) {
574 574 $new_path = $file_path . '.' . $expected_ext;
575 575 }