PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/utils.php +8 -2 3.25.13.25.2 View file →
@@ -878,10 +878,10 @@
878 878 return $cache;
879 879 }
880 880
881 881 public static function is_sale_time(): bool {
882 - $sale_start_time = gmmktime( 12, 0, 0, 5, 28, 2024 );
883 - $sale_end_time = gmmktime( 4, 59, 0, 6, 4, 2024 );
882 + $sale_start_time = gmmktime( 13, 0, 0, 11, 26, 2024 );
883 + $sale_end_time = gmmktime( 9, 59, 0, 12, 4, 2024 );
884 884
885 885 $now_time = gmdate( 'U' );
886 886
887 887 return $now_time >= $sale_start_time && $now_time <= $sale_end_time;
@@ -895,8 +895,14 @@
895 895 throw new \Exception( $message );
896 896 }
897 897
898 898 public static function has_invalid_post_permissions( $post ): bool {
899 + $is_image_attachment = 'attachment' === $post->post_type && strpos( $post->post_mime_type, 'image/' ) === 0;
900 +
901 + if ( $is_image_attachment ) {
902 + return false;
903 + }
904 +
899 905 $is_private = 'private' === $post->post_status
900 906 && ! current_user_can( 'read_private_posts', $post->ID );
901 907
902 908 $not_allowed = 'publish' !== $post->post_status