New answers tagged

0

If you check out the source of abspath(): public function abspath() { $folder = $this->find_folder(ABSPATH); // Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare. if ( ! $folder && $this->is_dir( '/' . WPINC ) ) $folder = '/'; ...


0

In PHP, in too many contexts, false and true are more of a state of mind than actual values and not false is not the same as true If you want to check that something is a boolean true, then just check if it is === true. In your case the function returns a WP_Error object which is not a boolean value at all and it probably includes the reason for the ...



Top 50 recent answers are included