Changeset 5668
- Timestamp:
- 01/29/2012 05:30:10 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-template.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r5602 r5668 1 1 <?php 2 2 3 // Exit if accessed directly 3 4 if ( !defined( 'ABSPATH' ) ) exit; … … 244 245 * Generates the basic search form as used in BP-Default's header. 245 246 * 246 * @global object $bp BuddyPress global settings247 247 * @return string HTML <select> element 248 248 * @since 1.0 249 249 */ 250 250 function bp_search_form_type_select() { 251 global $bp;252 251 253 252 $options = array(); … … 406 405 407 406 // Remove shortcodes if necessary 408 if ( $filter_shortcodes)407 if ( !empty( $filter_shortcodes ) ) 409 408 $text = strip_shortcodes( $text ); 410 409 411 410 // When $html is true, the excerpt should be created without including HTML tags in the 412 411 // excerpt length 413 if ( $html) {412 if ( !empty( $html ) ) { 414 413 // The text is short enough. No need to truncate 415 414 if ( mb_strlen( preg_replace( '/<.*?>/', '', $text ) ) <= $length ) { … … 471 470 472 471 // If $exact is false, we can't break on words 473 if ( !$exact) {472 if ( empty( $exact ) ) { 474 473 $spacepos = mb_strrpos( $truncate, ' ' ); 475 474 if ( isset( $spacepos ) ) { … … 981 980 */ 982 981 function bp_is_blog_page() { 983 global $wp_query;984 982 985 983 $is_blog_page = false; … … 1092 1090 1093 1091 function bp_is_my_profile() { 1094 global $bp;1095 1096 1092 if ( is_user_logged_in() && bp_loggedin_user_id() == bp_displayed_user_id() ) 1097 1093 $my_profile = true; … … 1103 1099 1104 1100 function bp_is_user() { 1105 global $bp;1106 1107 1101 if ( bp_displayed_user_id() ) 1108 1102 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)