Support » Plugin: Nested Pages » 3.0.8 introduces javascript error

  • Resolved cvc1968

    (@cvc1968)


    Rolling back to 3.0.7 fixes this error.

    Uncaught TypeError: jQuery(...).children(...).removeClassClass is not a function
        at HTMLDocument.<anonymous> (post.php?post=339&action=edit&classic-editor:174)
        at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,&load[]=jquery-ui-sortable,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.1.1:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,&load[]=jquery-ui-sortable,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.1.1:2)
        at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,&load[]=jquery-ui-sortable,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.1.1:2)
        at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,&load[]=jquery-ui-sortable,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=5.1.1:2)

    Here is the line that contains the “removeClassClass”:

    <script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li");jQuery(addnew).removeClass("current");jQuery(addnew).children("a").removeClassClass("current");});</script>	<link id="wp-admin-canonical" rel="canonical" href="http://nitro.iallcstaging.com/wp-admin/post.php?post=339&action=edit&classic-editor" /></script>
    
    • This topic was modified 7 months, 3 weeks ago by cvc1968.
    • This topic was modified 7 months, 3 weeks ago by cvc1968.
    • This topic was modified 7 months, 3 weeks ago by cvc1968.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘3.0.8 introduces javascript error’ is closed to new replies.