wp-staging / wp-staging-hooks

Plugin for adding extra functionality to the WordPress plugin WP STAGING
5 stars 2 forks source link

Does not work #1

Closed Tsjippy closed 2 years ago

Tsjippy commented 4 years ago

I tried it to exclude folders but it does not work.

rene-hermenau commented 4 years ago

Thank you. We are checking this bug

Tsjippy commented 4 years ago

Any news?

rene-hermenau commented 4 years ago

Hi, should work now. See: https://github.com/wp-staging/wp-staging-hooks/commit/8770c7d5c3bd5ad6e5db7672b71d9311e7519755

The syntax to exclude certain plugins is slightly different.

If your issue is still not solved please give us a proper error description and let us know how we can reproduce it.

Tsjippy commented 3 years ago

its working now, but to prevent the logmessages I had to add the following:

file Logger.php line 152: if(is_array($message)){ $messageString .= "[{$message["type"]}]-[{$message["date"]}] {$message["message"]}".PHP_EOL; }

file SearchReplace.php line 500: if ($key === '' || is_int($key) || ord($key[0]) === 0) {