Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/13/2012 03:06:46 AM (14 years ago)
Author:
johnjamesjacoby
Message:

WP_Query:

  • Audit WP_Query usage, and follow them up with wp_reset_postdata() as needed.
  • Fixes issues with sidebars and widgets that can execute before the main query loop.
  • For 2.2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-widgets.php

    r4124 r4149  
    405405                        </ul>
    406406
    407                 <?php echo $after_widget;
     407                        <?php echo $after_widget;
     408
     409                        // Reset the $post global
     410                        wp_reset_postdata();
    408411
    409412                endif;
    … …  
    623626                        <?php echo $after_widget;
    624627
     628                        // Reset the $post global
     629                        wp_reset_postdata();
     630
    625631                endif;
    626632        }
    … …  
    810816                        <?php echo $after_widget;
    811817
     818                        // Reset the $post global
     819                        wp_reset_postdata();
     820
    812821                endif;
    813822        }
Note: See TracChangeset for help on using the changeset viewer.