Errors in plugin code breaks the website
-
Hi,
There are some errors in code, which breaks the website if you turn on WP_DEBUG
Some of the errors are inside pw_save_term() function.
Line 968: if (current_user_can($objTaxonomy->cap->edit_term)) {
needs to be like: if (current_user_can($objTaxonomy->cap->edit_terms)) {
$objTaxonomy->cap->edit_termsAlso variable $taxonomy is not defined in that function. I assume that something like this is missing inside pw_save_term() function:
$taxonomy = $_POST[‘taxonomy’];WP version 4.0
Theme: Twenty Fourteen 1.0Regards,
Ivan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Errors in plugin code breaks the website’ is closed to new replies.