Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fixed bug JS in the default theme


  • axeleus
    Participant

    @axeleus

    After installing the plugin and view the topics, found in the Error Console

    Error: TypeError: $(...).on is not a function
    Source: /wp-content/plugins/bbpress/templates/default/js/topic.js?ver=2.3.2
    Line: 22

    Fixed bug with changing the .on to .live at line 22 and 27

Viewing 2 replies - 1 through 2 (of 2 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    From http://api.jquery.com/live/ :

    As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live().

    Sounds like you’re using an old jQuery version, being enqueued from some other plugin.


    axeleus
    Participant

    @axeleus

    Almost all of the plugins that I use, I write myself. I Use jQuery 1.8.3. But there was a problem.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.