File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1010/**
1111 * Filesystem class
1212 *
13- * @see Available methods: https://developer.wordpress.org/reference/classes/wp_filesystem_base/#methods
13+ * @see https://developer.wordpress.org/reference/classes/wp_filesystem_base/#methods
14+ * @mixin \WP_Filesystem_Base
1415 */
1516class Filesystem {
1617
@@ -24,7 +25,7 @@ class Filesystem {
2425 /**
2526 * WP Filesystem object
2627 *
27- * @var WP_Filesystem_*
28+ * @var \WP_Filesystem_Base
2829 */
2930 protected static $ wp_filesystem ;
3031
@@ -84,7 +85,7 @@ public function __construct( $base_dir ) {
8485 */
8586 private static function init_wp_filesystem () {
8687
87- if ( self ::$ wp_filesystem ) {
88+ if ( isset ( self ::$ wp_filesystem ) ) {
8889 return ;
8990 }
9091
@@ -230,7 +231,7 @@ public function image_to_base64( $image_path ) {
230231
231232 $ type = pathinfo ( $ this ->path ( $ image_path ), PATHINFO_EXTENSION );
232233
233- // SVG mime type fix .
234+ // Fix SVG MIME type.
234235 if ( 'svg ' === $ type ) {
235236 $ type = 'svg+xml ' ;
236237 }
You can’t perform that action at this time.
0 commit comments