• Resolved Ivan Paulin

    (@ivan_paulin)


    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_terms

    Also 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.0

    Regards,
    Ivan

    https://ww.wp.xz.cn/plugins/wp-page-widget/

Viewing 1 replies (of 1 total)
  • Plugin Author CodeAndMore

    (@codeandmore)

    We turned WP DEBUG on and it works OK with latest version of WordPress so please try upgrade.
    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Errors in plugin code breaks the website’ is closed to new replies.