Changeset 14185
- Timestamp:
- 12/30/2025 12:45:20 AM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/src/bp-blogs/bp-blogs-template.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-template.php
r14165 r14185 15 15 * 16 16 * @since 1.5.0 17 *18 17 */ 19 18 function bp_blogs_slug() { … … 25 24 * @since 1.5.0 26 25 * 27 * @return string The 'blogs' slug.26 * @return string 28 27 */ 29 28 function bp_get_blogs_slug() { … … 43 42 * 44 43 * @since 1.5.0 45 *46 44 */ 47 45 function bp_blogs_root_slug() { … … 818 816 */ 819 817 function bp_blog_latest_post_id() { 820 echo bp_get_blog_latest_post_id();818 echo intval( bp_get_blog_latest_post_id() ); 821 819 } 822 820 /** … … 1569 1567 echo bp_get_blog_create_nav_item(); 1570 1568 } 1571 1572 1569 /** 1573 1570 * Get the Create a Site nav item. … … 1578 1575 */ 1579 1576 function bp_get_blog_create_nav_item() { 1580 // Get the create a site button.1581 1577 $create_blog_button = bp_get_blog_create_button(); 1578 $output = ''; 1582 1579 1583 1580 // Make sure the button is available. 1584 if ( empty( $create_blog_button ) ) { 1585 return; 1586 } 1587 1588 $output = '<li id="blog-create-nav">' . $create_blog_button . '</li>'; 1581 if ( ! empty( $create_blog_button ) ) { 1582 $output = '<li id="blog-create-nav">' . $create_blog_button . '</li>'; 1583 } 1589 1584 1590 1585 /**
Note: See TracChangeset
for help on using the changeset viewer.