Changeset 5829 for trunk/src/includes/topics/functions.php
- Timestamp:
- 07/14/2015 12:46:38 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/functions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r5827 r5829 1195 1195 1196 1196 // Source topic not found 1197 } elseif ( ! $source_topic = bbp_get_topic( $source_topic_id ) ) {1197 } elseif ( ! $source_topic = bbp_get_topic( $source_topic_id ) ) { 1198 1198 bbp_add_error( 'bbp_merge_topic_source_not_found', __( '<strong>ERROR</strong>: The topic you want to merge was not found.', 'bbpress' ) ); 1199 1199 return; … … 1216 1216 1217 1217 // Destination topic not found 1218 if ( ! $destination_topic = bbp_get_topic( $destination_topic_id ) ) {1218 if ( ! $destination_topic = bbp_get_topic( $destination_topic_id ) ) { 1219 1219 bbp_add_error( 'bbp_merge_topic_destination_not_found', __( '<strong>ERROR</strong>: The topic you want to merge to was not found.', 'bbpress' ) ); 1220 1220 } … … 1872 1872 1873 1873 // No tag name was provided 1874 if ( empty( $_POST['tag-name'] ) || ! $name = $_POST['tag-name'] ) {1874 if ( empty( $_POST['tag-name'] ) || ! $name = $_POST['tag-name'] ) { 1875 1875 bbp_add_error( 'bbp_manage_topic_tag_update_name', __( '<strong>ERROR</strong>: You need to enter a tag name.', 'bbpress' ) ); 1876 1876 return; … … 1912 1912 1913 1913 // No tag name was provided 1914 if ( empty( $_POST['tag-existing-name'] ) || ! $name = $_POST['tag-existing-name'] ) {1914 if ( empty( $_POST['tag-existing-name'] ) || ! $name = $_POST['tag-existing-name'] ) { 1915 1915 bbp_add_error( 'bbp_manage_topic_tag_merge_name', __( '<strong>ERROR</strong>: You need to enter a tag name.', 'bbpress' ) ); 1916 1916 return; … … 1918 1918 1919 1919 // If term does not exist, create it 1920 if ( ! $tag = term_exists( $name, bbp_get_topic_tag_tax_id() ) ) {1920 if ( ! $tag = term_exists( $name, bbp_get_topic_tag_tax_id() ) ) { 1921 1921 $tag = wp_insert_term( $name, bbp_get_topic_tag_tax_id() ); 1922 1922 } … … 2178 2178 $success = true === $is_spam ? bbp_unspam_topic( $topic_id ) : bbp_spam_topic( $topic_id ); 2179 2179 $failure = true === $is_spam ? __( '<strong>ERROR</strong>: There was a problem unmarking the topic as spam.', 'bbpress' ) : __( '<strong>ERROR</strong>: There was a problem marking the topic as spam.', 'bbpress' ); 2180 $view_all = ! $is_spam;2180 $view_all = ! $is_spam; 2181 2181 2182 2182 break;
Note: See TracChangeset
for help on using the changeset viewer.