PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.1
Post Grid Gutenberg Blocks – PostX v5.1.1
5.1.1 5.1.0 5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 All 240 releases
← All changes | classes/Caches.php +2 -2 5.0.37 → 5.1.1 View file →
@@ -208,10 +208,10 @@
208 208 WP_Filesystem( false, $upload_dir_url['basedir'], true );
209 209 if ( ! $wp_filesystem->is_dir( $dir ) ) {
210 210 $wp_filesystem->mkdir( $dir );
211 211 }
212 - if ( ! file_exists( $dir . $type . '.json' ) ) {
213 - fopen( $dir . $type. '.json', "w" ); //phpcs:ignore
212 + if ( ! $wp_filesystem->exists( $dir . $type . '.json' ) ) {
213 + $wp_filesystem->put_contents( $dir . $type . '.json', '' );
214 214 }
215 215 return $dir;
216 216 } catch ( \Exception $e ) {
217 217 return array(