Changeset 6777 for trunk/src/includes/extend/buddypress/loader.php
- Timestamp:
- 01/24/2018 01:01:49 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/loader.php
r6573 r6777 40 40 parent::start( 41 41 'forums', 42 __( 'Forums', 'bbpress' ),42 esc_html__( 'Forums', 'bbpress' ), 43 43 bbpress()->includes_dir . 'extend/buddypress/' 44 44 ); … … 105 105 'root_slug' => isset( $bp->pages->forums->slug ) ? $bp->pages->forums->slug : BP_FORUMS_SLUG, 106 106 'has_directory' => false, 107 'search_string' => __( 'Search Forums...', 'bbpress' ),107 'search_string' => esc_html__( 'Search Forums...', 'bbpress' ), 108 108 ); 109 109 … … 175 175 // Add 'Forums' to the main navigation 176 176 $main_nav = array( 177 'name' => __( 'Forums', 'bbpress' ),177 'name' => esc_html__( 'Forums', 'bbpress' ), 178 178 'slug' => $this->slug, 179 179 'position' => 80, … … 197 197 // Topics started 198 198 $sub_nav[] = array( 199 'name' => __( 'Topics Started', 'bbpress' ),199 'name' => esc_html__( 'Topics Started', 'bbpress' ), 200 200 'slug' => bbp_get_topic_archive_slug(), 201 201 'parent_url' => $forums_link, … … 208 208 // Replies to topics 209 209 $sub_nav[] = array( 210 'name' => __( 'Replies Created', 'bbpress' ),210 'name' => esc_html__( 'Replies Created', 'bbpress' ), 211 211 'slug' => bbp_get_reply_archive_slug(), 212 212 'parent_url' => $forums_link, … … 220 220 if ( bbp_is_engagements_active() ) { 221 221 $sub_nav[] = array( 222 'name' => __( 'Engagements', 'bbpress' ),222 'name' => esc_html__( 'Engagements', 'bbpress' ), 223 223 'slug' => bbp_get_user_engagements_slug(), 224 224 'parent_url' => $forums_link, … … 233 233 if ( bbp_is_favorites_active() ){ 234 234 $sub_nav[] = array( 235 'name' => __( 'Favorites', 'bbpress' ),235 'name' => esc_html__( 'Favorites', 'bbpress' ), 236 236 'slug' => bbp_get_user_favorites_slug(), 237 237 'parent_url' => $forums_link, … … 246 246 if ( bp_is_my_profile() && bbp_is_subscriptions_active() ) { 247 247 $sub_nav[] = array( 248 'name' => __( 'Subscriptions', 'bbpress' ),248 'name' => esc_html__( 'Subscriptions', 'bbpress' ), 249 249 'slug' => bbp_get_user_subscriptions_slug(), 250 250 'parent_url' => $forums_link, … … 297 297 'parent' => buddypress()->my_account_menu_id, 298 298 'id' => 'my-account-' . $this->id, 299 'title' => __( 'Forums', 'bbpress' ),299 'title' => esc_html__( 'Forums', 'bbpress' ), 300 300 'href' => $my_account_link 301 301 ); … … 305 305 'parent' => 'my-account-' . $this->id, 306 306 'id' => 'my-account-' . $this->id . '-topics', 307 'title' => __( 'Topics Started', 'bbpress' ),307 'title' => esc_html__( 'Topics Started', 'bbpress' ), 308 308 'href' => $my_topics_link 309 309 ); … … 313 313 'parent' => 'my-account-' . $this->id, 314 314 'id' => 'my-account-' . $this->id . '-replies', 315 'title' => __( 'Replies Created', 'bbpress' ),315 'title' => esc_html__( 'Replies Created', 'bbpress' ), 316 316 'href' => $my_replies_link 317 317 ); … … 322 322 'parent' => 'my-account-' . $this->id, 323 323 'id' => 'my-account-' . $this->id . '-engagements', 324 'title' => __( 'Engagements', 'bbpress' ),324 'title' => esc_html__( 'Engagements', 'bbpress' ), 325 325 'href' => $my_engagements_link 326 326 ); … … 332 332 'parent' => 'my-account-' . $this->id, 333 333 'id' => 'my-account-' . $this->id . '-favorites', 334 'title' => __( 'Favorite Topics', 'bbpress' ),334 'title' => esc_html__( 'Favorite Topics', 'bbpress' ), 335 335 'href' => $my_favorites_link 336 336 ); … … 342 342 'parent' => 'my-account-' . $this->id, 343 343 'id' => 'my-account-' . $this->id . '-subscriptions', 344 'title' => __( 'Subscribed Topics', 'bbpress' ),344 'title' => esc_html__( 'Subscribed Topics', 'bbpress' ), 345 345 'href' => $my_subscriptions_link 346 346 ); … … 362 362 if ( bp_is_forums_component() ) { 363 363 if ( bp_is_my_profile() ) { 364 $bp->bp_options_title = __( 'Forums', 'bbpress' );364 $bp->bp_options_title = esc_html__( 'Forums', 'bbpress' ); 365 365 } elseif ( bp_is_user() ) { 366 366 $bp->bp_options_avatar = bp_core_fetch_avatar( array(
Note: See TracChangeset
for help on using the changeset viewer.