Skip to:
Content

BuddyPress.org

Changeset 5636


Ignore:
Timestamp:
01/16/2012 10:06:38 PM (10 years ago)
Author:
djpaul
Message:

Correct page preview when home page is set to use a static page. Fixes #3928

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/bp-core/bp-core-catchuri.php

    r5611 r5636  
    130130    // so that $current_component is populated (unless a specific WP post is being requested
    131131    // via a URL parameter, usually signifying Preview mode)
    132     if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) && empty( $bp_uri ) && empty( $_GET['p'] ) ) {
     132    if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) && empty( $bp_uri ) && empty( $_GET['p'] ) && empty( $_GET['page_id'] ) ) {
    133133        $post = get_post( get_option( 'page_on_front' ) );
    134134        if ( !empty( $post ) ) {
Note: See TracChangeset for help on using the changeset viewer.