Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/21/2013 08:30:12 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Use rewrite ID helper functions instead of hardcoded strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/theme-compat.php

    r5110 r5134  
    691691            'post_author'    => 0,
    692692            'post_date'      => 0,
    693             'post_content'   => $bbp_shortcodes->display_view( array( 'id' => get_query_var( 'bbp_view' ) ) ),
     693            'post_content'   => $bbp_shortcodes->display_view( array( 'id' => get_query_var( bbp_get_view_rewrite_id() ) ) ),
    694694            'post_type'      => '',
    695695            'post_status'    => bbp_get_public_status_id(),
     
    707707            'post_author'    => 0,
    708708            'post_date'      => 0,
    709             'post_content'   => $bbp_shortcodes->display_search( array( 'search' => get_query_var( 'bbp_search' ) ) ),
     709            'post_content'   => $bbp_shortcodes->display_search( array( 'search' => get_query_var( bbp_get_search_rewrite_id() ) ) ),
    710710            'post_type'      => '',
    711711            'post_status'    => bbp_get_public_status_id(),
Note: See TracChangeset for help on using the changeset viewer.