Changeset 7006 for trunk/src/includes/replies/functions.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r6923 r7006 717 717 718 718 // Update counts, etc... 719 do_action( 'bbp_edit_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author 719 do_action( 'bbp_edit_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author, true, $reply_to ); 720 720 721 721 /** Revisions *********************************************************/ … … 731 731 732 732 // Update revision log 733 if ( ! empty( $_POST['bbp_log_reply_edit'] ) && ( "1"=== $_POST['bbp_log_reply_edit'] ) ) {733 if ( ! empty( $_POST['bbp_log_reply_edit'] ) && ( '1' === $_POST['bbp_log_reply_edit'] ) ) { 734 734 $revision_id = wp_save_post_revision( $reply_id ); 735 735 if ( ! empty( $revision_id ) ) { … … 822 822 set_transient( '_bbp_' . bbp_current_author_ip() . '_last_posted', time() ); 823 823 } 824 825 824 } else { 826 825 if ( empty( $is_edit ) && ! current_user_can( 'throttle' ) ) { … … 2080 2079 // The texts to search for 2081 2080 $search = array( 2082 "FROM {$table_name} " 2081 "FROM {$table_name} ", 2083 2082 "WHERE 1=1 AND {$table_name}.post_parent = {$topic_id}", 2084 2083 ") AND {$table_name}.post_parent = {$topic_id}" … … 2087 2086 // The texts to replace them with 2088 2087 $replace = array( 2089 $search[0] . "FORCE INDEX (PRIMARY, post_parent) ",2088 $search[0] . 'FORCE INDEX (PRIMARY, post_parent) ', 2090 2089 "WHERE 1=1 AND ({$table_name}.ID = {$topic_id} OR {$table_name}.post_parent = {$topic_id})", 2091 2090 ") AND ({$table_name}.ID = {$topic_id} OR {$table_name}.post_parent = {$topic_id})" … … 2147 2146 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> 2148 2147 <link><?php self_link(); ?></link> 2149 <description><?php //?></description> 2148 <description><?php //?></description><?php // phpcs:ignore ?> 2150 2149 <lastBuildDate><?php echo date( 'r' ); ?></lastBuildDate> 2151 2150 <generator><?php echo esc_url_raw( 'https://bbpress.org/?v=' . convert_chars( bbp_get_version() ) ); ?></generator> … … 2190 2189 <link><?php bbp_reply_url(); ?></link> 2191 2190 <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate> 2192 <dc:creator><?php the_author() ?></dc:creator>2191 <dc:creator><?php the_author(); ?></dc:creator> 2193 2192 2194 2193 <description>
Note: See TracChangeset
for help on using the changeset viewer.