Changeset 7276
- Timestamp:
- 07/02/2024 04:11:29 PM (6 weeks ago)
- Location:
- trunk/src/includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/template.php
r7231 r7276 2845 2845 return apply_filters( 'bbp_title', $new_title, $sep, $seplocation ); 2846 2846 } 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 -
trunk/src/includes/core/filters.php
r7235 r7276 64 64 // Reply title fallback 65 65 add_filter( 'the_title', 'bbp_get_reply_title_fallback', 2, 2 ); 66 67 68 69 66 70 67 71 // Avoid queries & 404s -
trunk/src/includes/forums/template.php
r7239 r7276 373 373 function bbp_get_forum_title( $forum_id = 0 ) { 374 374 $forum_id = bbp_get_forum_id( $forum_id ); 375 $title = get_the_title( $forum_id ); 375 $title = get_post_field( 'post_title', $forum_id ); 376 $title = apply_filters( 'the_title', $title, $forum_id ); 376 377 377 378 // Filter & return -
trunk/src/includes/replies/template.php
r7268 r7276 524 524 function bbp_get_reply_title( $reply_id = 0 ) { 525 525 $reply_id = bbp_get_reply_id( $reply_id ); 526 $title = get_the_title( $reply_id ); 526 $title = get_post_field( 'post_title', $reply_id ); 527 $title = apply_filters( 'the_title', $title, $reply_id ); 527 528 528 529 // Filter & return … … 1401 1402 $reply_id = bbp_get_reply_id( $reply_id ); 1402 1403 $topic_id = bbp_get_reply_topic_id( $reply_id ); 1403 1404 // Filter & return 1405 return apply_filters( 'bbp_get_reply_topic_title', bbp_get_topic_title( $topic_id ), $reply_id ); 1404 $title = bbp_get_topic_title( $topic_id ); 1405 1406 // Filter & return 1407 return apply_filters( 'bbp_get_reply_topic_title', $title, $reply_id ); 1406 1408 } 1407 1409 -
trunk/src/includes/topics/template.php
r7268 r7276 601 601 function bbp_get_topic_title( $topic_id = 0 ) { 602 602 $topic_id = bbp_get_topic_id( $topic_id ); 603 $title = get_the_title( $topic_id ); 603 $title = get_post_field( 'post_title', $topic_id ); 604 $title = apply_filters( 'the_title', $title, $topic_id ); 604 605 605 606 // Filter & return
Note: See TracChangeset
for help on using the changeset viewer.