Skip to content

Commit 4c5939c

Browse files
szepeviktorjakubmikita
authored andcommitted
Fix types, static prop. handling and wording
1 parent acb5085 commit 4c5939c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Filesystem.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
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
*/
1516
class 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
}

0 commit comments

Comments
 (0)