Changeset 7006 for trunk/src/includes/topics/functions.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r6923 r7006 647 647 648 648 // Update counts, etc... 649 do_action( 'bbp_edit_topic', $topic_id, $forum_id, $anonymous_data, $topic_author 649 do_action( 'bbp_edit_topic', $topic_id, $forum_id, $anonymous_data, $topic_author, true /* Is edit */ ); 650 650 651 651 /** Revisions *********************************************************/ … … 661 661 662 662 // Update revision log 663 if ( ! empty( $_POST['bbp_log_topic_edit'] ) && ( "1" === $_POST['bbp_log_topic_edit'] ) ){663 if ( ! empty( $_POST['bbp_log_topic_edit'] ) && ( '1' === $_POST['bbp_log_topic_edit'] ) ) { 664 664 $revision_id = wp_save_post_revision( $topic_id ); 665 665 if ( ! empty( $revision_id ) ) { … … 790 790 } 791 791 792 // If not anonymous, then 792 793 } else { 793 794 if ( empty( $is_edit ) && ! current_user_can( 'throttle' ) ) { … … 868 869 869 870 // Get the forum ID if none was passed 870 if ( empty( $forum_id ) 871 if ( empty( $forum_id ) ) { 871 872 $forum_id = bbp_get_topic_forum_id( $topic_id ); 872 873 } … … 1195 1196 1196 1197 // Shift the tags if told to 1197 if ( ! empty( $_POST['bbp_topic_tags'] ) && ( "1"=== $_POST['bbp_topic_tags'] ) ) {1198 if ( ! empty( $_POST['bbp_topic_tags'] ) && ( '1' === $_POST['bbp_topic_tags'] ) ) { 1198 1199 wp_set_post_terms( $destination_topic->ID, $source_topic_tags, bbp_get_topic_tag_tax_id(), true ); 1199 1200 } … … 1488 1489 1489 1490 // Copy the subscribers 1490 if ( ! empty( $_POST['bbp_topic_subscribers'] ) && "1"=== $_POST['bbp_topic_subscribers'] && bbp_is_subscriptions_active() ) {1491 if ( ! empty( $_POST['bbp_topic_subscribers'] ) && '1' === $_POST['bbp_topic_subscribers'] && bbp_is_subscriptions_active() ) { 1491 1492 1492 1493 // Get the subscribers … … 1505 1506 1506 1507 // Copy the favoriters if told to 1507 if ( ! empty( $_POST['bbp_topic_favoriters'] ) && ( "1"=== $_POST['bbp_topic_favoriters'] ) ) {1508 if ( ! empty( $_POST['bbp_topic_favoriters'] ) && ( '1' === $_POST['bbp_topic_favoriters'] ) ) { 1508 1509 1509 1510 // Get the favoriters … … 1522 1523 1523 1524 // Copy the tags if told to 1524 if ( ! empty( $_POST['bbp_topic_tags'] ) && ( "1"=== $_POST['bbp_topic_tags'] ) ) {1525 if ( ! empty( $_POST['bbp_topic_tags'] ) && ( '1' === $_POST['bbp_topic_tags'] ) ) { 1525 1526 1526 1527 // Get the source topic tags … … 2135 2136 2136 2137 $is_sticky = bbp_is_topic_sticky( $r['id'] ); 2137 $is_super = false === $is_sticky && ! empty( $_GET['super'] ) && ( "1"=== $_GET['super'] ) ? true : false;2138 $is_super = false === $is_sticky && ! empty( $_GET['super'] ) && ( '1' === $_GET['super'] ) ? true : false; 2138 2139 2139 2140 // Toggle … … 3776 3777 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> 3777 3778 <link><?php self_link(); ?></link> 3778 <description><?php //?></description> 3779 <description><?php //?></description><?php // phpcs:ignore ?> 3779 3780 <lastBuildDate><?php echo date( 'r' ); ?></lastBuildDate> 3780 3781 <generator><?php echo esc_url_raw( 'https://bbpress.org/?v=' . convert_chars( bbp_get_version() ) ); ?></generator> … … 3792 3793 <link><?php bbp_topic_permalink(); ?></link> 3793 3794 <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_meta( bbp_get_topic_id(), '_bbp_last_active_time', true ), false ); ?></pubDate> 3794 <dc:creator><?php the_author() ?></dc:creator>3795 <dc:creator><?php the_author(); ?></dc:creator> 3795 3796 3796 3797 <?php if ( !post_password_required() ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.