Skip to:
Content

bbPress.org

Changeset 6343


Ignore:
Timestamp:
03/02/2017 06:36:41 AM (7 years ago)
Author:
johnjamesjacoby
Message:

Templates: Localize topic ID and forum ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress-functions.php

    r6261 r6343  
    241241        if ( bbp_is_single_forum() ) {
    242242            wp_localize_script( 'bbpress-forum', 'bbpForumJS', array(
     243                'forum_id'           => get_the_ID(),
    243244                'bbp_ajaxurl'        => bbp_get_ajax_url(),
    244245                'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),
     
    250251        } elseif ( bbp_is_single_topic() ) {
    251252            wp_localize_script( 'bbpress-topic', 'bbpTopicJS', array(
     253                'topic_id'           => get_the_ID(),
    252254                'bbp_ajaxurl'        => bbp_get_ajax_url(),
    253255                'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),
Note: See TracChangeset for help on using the changeset viewer.