Changeset 3545 for branches/2.0/bbp-includes/bbp-topic-functions.php
- Timestamp:
- 10/10/2011 06:29:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/bbp-includes/bbp-topic-functions.php
r3540 r3545 792 792 793 793 // Validate topic_id 794 $topic_id = bbp_get_topic_id( $topic_id ); 794 $topic_id = bbp_get_topic_id( $topic_id ); 795 796 // Define local variable(s) 797 $active_id = 0; 795 798 796 799 // Topic was passed … … 881 884 // Add non-matches to the updated array 882 885 if ( $topic_id != $sticky_topic_id ) { 883 $updated_stickies[ $k] = $v;886 $updated_stickies[] = $sticky_topic_id; 884 887 } 885 888 } … … 1825 1828 return; 1826 1829 1830 $failure = ''; // Empty failure string 1827 1831 $view_all = false; // Assume not viewing all 1828 1832 $action = $_GET['action']; // What action is taking place? … … 1830 1834 $success = false; // Flag 1831 1835 $post_data = array( 'ID' => $topic_id ); // Prelim array 1836 $redirect = ''; // Empty redirect URL 1832 1837 1833 1838 // Make sure topic exists 1834 if ( !$topic = bbp_get_topic( $topic_id ) ) 1839 $topic = bbp_get_topic( $topic_id ); 1840 if ( empty( $topic ) ) 1835 1841 return; 1836 1842 … … 2500 2506 // Get topic tags 2501 2507 $terms = get_the_terms( $topic_id, bbp_get_topic_tag_tax_id() ); 2508 2509 // Define local variable(s) 2510 $term_names = array(); 2502 2511 2503 2512 // Topic has tags
Note: See TracChangeset
for help on using the changeset viewer.