Changeset 5226
- Timestamp:
- 10/08/2011 09:55:15 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/1.5 merged: 5225
- Property svn:mergeinfo changed
-
trunk/bp-core/bp-core-functions.php
r5223 r5226 841 841 $slug = ''; 842 842 $var = '/?s='; 843 844 // If posts aren't displayed on the front page, find the post page's slug. 845 if ( 'page' == get_option( 'show_on_front' ) ) { 846 $page = get_post( get_option( 'page_for_posts' ) ); 847 848 if ( !is_wp_error( $page ) && !empty( $page->post_name ) ) { 849 $slug = $page->post_name; 850 $var = '?s='; 851 } 852 } 843 853 break; 844 854
Note: See TracChangeset
for help on using the changeset viewer.