Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/14/2015 12:46:38 AM (10 years ago)
Author:
johnjamesjacoby
Message:

I think this building should be condemned. There's serious metal fatigue in all the load-bearing members, the wiring is substandard, it's completely inadequate for our power needs, and the neighborhood is like a demilitarized zone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r5813 r5829  
    103103
    104104    // Maybe load the template if one was located
    105     if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true === $load ) && !empty( $located ) ) {
     105    if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true === $load ) && ! empty( $located ) ) {
    106106        load_template( $located, $require_once );
    107107    }
     
    158158
    159159    // Enqueue if located
    160     if ( !empty( $located ) ) {
     160    if ( ! empty( $located ) ) {
    161161
    162162        $content_dir = constant( 'WP_CONTENT_DIR' );
     
    226226
    227227    // Enqueue if located
    228     if ( !empty( $located ) ) {
     228    if ( ! empty( $located ) ) {
    229229
    230230        $content_dir = constant( 'WP_CONTENT_DIR' );
     
    504504
    505505    // It is a user page - We'll also check if it is user edit
    506     if ( !empty( $bbp_user ) ) {
     506    if ( ! empty( $bbp_user ) ) {
    507507
    508508        /** Find User *********************************************************/
     
    534534
    535535        // View or edit?
    536         if ( !empty( $is_edit ) ) {
     536        if ( ! empty( $is_edit ) ) {
    537537
    538538            // We are editing a profile
     
    602602
    603603    // View Page
    604     } elseif ( !empty( $bbp_view ) ) {
     604    } elseif ( ! empty( $bbp_view ) ) {
    605605
    606606        // Check if the view exists by checking if there are query args are set
     
    624624        // Check if there are search query args set
    625625        $search_terms = bbp_get_search_terms();
    626         if ( !empty( $search_terms ) ) {
     626        if ( ! empty( $search_terms ) ) {
    627627            $posts_query->bbp_search_terms = $search_terms;
    628628        }
     
    635635
    636636    // Forum/Topic/Reply Edit Page
    637     } elseif ( !empty( $is_edit ) ) {
     637    } elseif ( ! empty( $is_edit ) ) {
    638638
    639639        // Get the post type from the main query loop
     
    641641
    642642        // Check which post_type we are editing, if any
    643         if ( !empty( $post_type ) ) {
     643        if ( ! empty( $post_type ) ) {
    644644            switch( $post_type ) {
    645645
Note: See TracChangeset for help on using the changeset viewer.