Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: https://bbpress.trac.wordpress.org/ticket/3383?format=rss

  1. <?xml version="1.0"?>
  2. <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  3.  <channel>
  4.    <title>bbPress Trac: Ticket #3383: bbPress metadata not updated when using Oasis Workflow to publish replies</title>
  5.    <link>https://bbpress.trac.wordpress.org/ticket/3383</link>
  6.    <description>&lt;p&gt;
  7. I am using bbPress version 2.6.5 and Oasis Workflow version 5.0 to develop a workflow that allows an admin to moderate and review a reply posted to a topic as pending before being allowed to be published.  Everything works except for updating the meta data for the containing topic and forum once the reply is approved and published.  In order to correct the topic and forum metadata I have added the following to a self-developed plugin that enables the bbPress rest-api and adds some additional fields to the returned rest-api JSON data.  While this fixes it for me, I think that one or the other plugin should handle this problem so that others don't have the same problem and need to debug these issues.
  8. &lt;/p&gt;
  9. &lt;pre class="wiki"&gt;/**
  10. * Fires once a post has been saved.
  11. *
  12. * @param int     $post_ID Post ID.
  13. * @param WP_Post $post    Post object.
  14. * @param bool    $update  Whether this is an existing post being updated or not.
  15. */
  16. function bbpress_update_post_meta($post_ID, $post, $updated = true) {
  17.  if ($updated) {
  18.    if ($post &amp;amp;&amp;amp; ($post-&amp;gt;post_type == bbp_get_reply_post_type())) {
  19.      bbp_update_reply($post_ID);
  20.      bbp_update_topic_reply_count($post_ID);
  21.      bbp_update_forum_reply_count(bbp_get_reply_forum_id($post_ID));
  22.    }
  23.  }
  24. }
  25. add_action( 'wp_insert_post', 'bbpress_update_post_meta', 10, 3 );
  26. &lt;/pre&gt;&lt;p&gt;
  27. I am submitting this ticket to both bbPress and Oasis Workflow as I am not certain where the responsibility for this code should reside and I am not sure if I have captured all that needs to be done.  Please let me know if you require more information.
  28. &lt;/p&gt;
  29. &lt;p&gt;
  30. Thank you for your help with this.
  31. &lt;/p&gt;
  32. &lt;p&gt;
  33. Vern Badham
  34. &lt;/p&gt;
  35. </description>
  36.    <language>en-us</language>
  37.    <image>
  38.      <title>bbPress Trac</title>
  39.      <url>https://bbpress.trac.wordpress.org/chrome/site/your_project_logo.png</url>
  40.      <link>https://bbpress.trac.wordpress.org/ticket/3383</link>
  41.    </image>
  42.    <generator>Trac 1.2.2</generator>
  43. </channel>
  44. </rss>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=https%3A//bbpress.trac.wordpress.org/ticket/3383%3Fformat%3Drss

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda