wpugph / WordPress-Easy-Symlinks

Easily setup symlinks in your website specially when mapping readonly paths to a writable path
https://wordpress.org/plugins/easy-symlinks/
8 stars 8 forks source link

Prevent PHP notice when creating a symlink without a new directory #34

Open sarahg opened 4 years ago

sarahg commented 4 years ago

If you create a symlink that does not also create a new directory, you'll get this PHP notice:

Notice: Undefined variable: status in /code/wp-content/plugins/easy-symlinks/includes/lib/class-easy-symlinks-functions.php on line 213

We need to set a value for $status in case the mkdir never happens.