It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: http://blet.shop/ticket/2512?format=rss

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  <head>
  12.    <title>
  13.      #2512 (bbp_admin_repair_forum_visibility repair tool breaks private and hidden forum visibility)
  14.     – bbPress Trac
  15.    </title>
  16.      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  17.      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  18.    <!--[if IE]><script type="text/javascript">
  19.      if (/^#__msie303:/.test(window.location.hash))
  20.        window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
  21.    </script><![endif]-->
  22.          <link rel="search" href="/search" />
  23.          <link rel="prev" href="/ticket/2511" title="Ticket #2511" />
  24.          <link rel="last" href="/ticket/3609" title="Ticket #3609" />
  25.          <link rel="help" href="/wiki/TracGuide" />
  26.          <link rel="alternate" href="/ticket/2512?format=csv" type="text/csv" class="csv" title="Comma-delimited Text" />
  27.          <link rel="alternate" href="/ticket/2512?format=tab" type="text/tab-separated-values" class="tab" title="Tab-delimited Text" />
  28.          <link rel="alternate" href="/ticket/2512?format=rss" type="application/rss+xml" class="rss" title="RSS Feed" />
  29.          <link rel="next" href="/ticket/2513" title="Ticket #2513" />
  30.          <link rel="start" href="/wiki" />
  31. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/trac.css?v=220" />
  32. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/ticket.css?v=220" />
  33. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/jquery-ui/jquery-ui.css?v=220" />
  34. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/jquery-ui-addons.css?v=220" />
  35.          <link rel="icon" href="https://bbpress.org/favicon.ico" type="image/x-icon" />
  36.          <link rel="first" href="/ticket/1" title="Ticket #1" />
  37.    <style id="trac-noscript" type="text/css">.trac-noscript { display: none !important }</style>
  38.      <link type="application/opensearchdescription+xml" rel="search" href="/search/opensearch" title="Search bbPress Trac" />
  39.    <script type="text/javascript">
  40.      var auto_preview_timeout=2.0;
  41.      var form_token="e9626cc2fed35898c3866773";
  42.      var jquery_ui={"ampm":true,"date_format":"mm/dd/yy","day_names":{"abbreviated":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"narrow":["Su","Mo","Tu","We","Th","Fr","Sa"],"wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"default_timezone":null,"first_week_day":0,"month_names":{"abbreviated":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wide":["January","February","March","April","May","June","July","August","September","October","November","December"]},"period_names":{"am":["AM","AM"],"pm":["PM","PM"]},"show_timezone":false,"time_format":"hh:mm:ss TT","timepicker_separator":" ","timezone_iso8601":false,"timezone_list":null};
  43.      var comments_prefs={"comments_order":"oldest","show_comments":"true","show_prop_changes":"true"};
  44.    </script>
  45. <link rel="dns-prefetch" href="//fonts.googleapis.com" />
  46. <link rel="dns-prefetch" href="//www.googletagmanager.com" />
  47. <script>//<![CDATA[
  48. (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  49. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  50. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  51. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  52. })(window,document,'script','dataLayer','GTM-P24PF4B');
  53. //]]></script>
  54. <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&amp;subset=latin%2Clatin-ext&amp;ver=3.8.1-alpha" type="text/css" media="all" />
  55. <link type="text/css" media="screen" rel="stylesheet" href="//bbpress.org/wp-content/themes/bb-base/style.css?v=24" />
  56. <link type="text/css" media="screen" rel="stylesheet" href="//bbpress.org/wp-content/themes/bb-base/style-bbpress.css?v=24" />
  57.  
  58. <meta name="viewport" content="width=device-width" />
  59. <link rel="stylesheet" href="https://s.w.org/wp-includes/css/dashicons.min.css?20150710" type="text/css" />
  60. <link rel="stylesheet" type="text/css" href="https://s.w.org/style/trac/wp-trac.css?220" />
  61. <script src="https://s.w.org/style/trac/common/js/jquery.js?v=220"></script>
  62. <link rel="canonical" href="https://bbpress.trac.wordpress.org/ticket/2512" />
  63. <script src="https://s.w.org/style/trac/common/js/babel.js?v=220"></script>
  64. <script src="https://s.w.org/style/trac/common/js/trac.js?v=220"></script>
  65. <script src="https://s.w.org/style/trac/common/js/search.js?v=220"></script>
  66. <script src="https://s.w.org/style/trac/common/js/folding.js?v=220"></script>
  67. <script src="https://s.w.org/style/trac/common/js/wikitoolbar.js?v=220"></script>
  68. <script src="https://s.w.org/style/trac/common/js/resizer.js?v=220"></script>
  69. <script src="https://s.w.org/style/trac/common/js/auto_preview.js?v=220"></script>
  70. <script src="https://s.w.org/style/trac/common/js/jquery-ui.js?v=220"></script>
  71. <script src="https://s.w.org/style/trac/common/js/jquery-ui-addons.js?v=220"></script>
  72. <script src="https://s.w.org/style/trac/common/js/jquery-ui-i18n.js?v=220"></script>
  73.    <script type="text/javascript">
  74.      jQuery("#trac-noscript").remove();
  75.      jQuery(document).ready(function($) {
  76.        $(".trac-autofocus").focus();
  77.        $(".trac-target-new").attr("target", "_blank");
  78.        if ($.ui) { /* is jquery-ui added? */
  79.          $(".trac-datepicker:not([readonly])").prop("autocomplete", "off").datepicker();
  80.          $(".trac-datetimepicker:not([readonly])").prop("autocomplete", "off").datetimepicker();
  81.          $("#main").addClass("trac-nodatetimehint");
  82.        }
  83.        $(".trac-disable").disableSubmit(".trac-disable-determinant");
  84.        setTimeout(function() { $(".trac-scroll").scrollToTop() }, 1);
  85.        $(".trac-disable-on-submit").disableOnSubmit();
  86.      });
  87.    </script>
  88. <script src="https://s.w.org/style/trac/common/js/threaded_comments.js?v=220"></script>
  89.    <script type="text/javascript">
  90.      jQuery(document).ready(function($) {
  91.        $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section"));
  92.        $(".foldable").enableFolding(false, true);
  93.      /*<![CDATA[*/
  94.        $("#attachments").toggleClass("collapsed");
  95.        $("#trac-up-attachments").click(function () {
  96.          $("#attachments").removeClass("collapsed");
  97.          return true;
  98.        });
  99.        $("#modify").parent().toggleClass("collapsed");
  100.        $(".trac-topnav a").click(function() { $("#modify").parent().removeClass("collapsed"); });
  101.        function setRevertHandler() {
  102.          $("button.trac-revert").click(function() {
  103.            var div = $("div", this);
  104.            var field_name = div[0].id.substr(7);
  105.            var field_value = div.text();
  106.            var input = $("#propertyform *[name=field_" + field_name + "]");
  107.            if (input.length > 0) {
  108.              if (input.filter("input[type=radio]").length > 0) {
  109.                input.val([field_value]);
  110.              } else if (input.filter("input[type=checkbox]").length > 0) {
  111.                input.val(field_value == "1" ? [field_value] : []);
  112.              } else {
  113.                input.val(field_value);
  114.              }
  115.            } else { // Special case for CC checkbox
  116.              input = $("#propertyform input[name=cc_update]").val([]);
  117.            }
  118.            input.change();
  119.            // Remove the revert button
  120.            if ($(this).closest("tbody").children("tr").length === 1)
  121.              $(this).closest(".trac-change-panel").remove();
  122.            else
  123.              $(this).closest("tr").remove();
  124.            return false;
  125.          });
  126.        }
  127.        setRevertHandler();
  128.        var comment_focused = false;
  129.        $("#comment").focus(function() { comment_focused = true; })
  130.                     .blur(function() { comment_focused = false; });
  131.        $("#propertyform").autoSubmit({preview: '1'}, function(data, reply) {
  132.          var items = $(reply);
  133.          // Update ticket box
  134.          $("#ticket").replaceWith(items.filter('#ticket'));
  135.          // Replaces content of #changelog, without recreating it
  136.          $("#changelog").empty().append(items.filter("#changelog").contents());
  137.          // Apply comments order and "Show" preferences
  138.          applyCommentsOrder(
  139.            $('#prefs input[name="trac-comments-order"]:checked').val());
  140.          // Show warning
  141.          var new_changes = $("#changelog .trac-new");
  142.          $("#trac-edit-warning").toggle(new_changes.length != 0);
  143.          if (new_changes.length != 0)
  144.            $("#changelog").parent().show().removeClass("collapsed");
  145.          // Update view time
  146.          $("#propertyform input[name='view_time']").replaceWith(items.filter("input[name='view_time']"));
  147.          // Update preview
  148.          var preview = $("#ticketchange").html(items.filter('#preview').children());
  149.          var show_preview = preview.children().length != 0;
  150.          $("#ticketchange").toggle(show_preview);
  151.          setRevertHandler();
  152.          // Execute scripts to load stylesheets
  153.          items.filter("script").appendTo("head");
  154.        }, "#ticketchange .trac-loading");
  155.        $("#trac-comment-editor").autoSubmit({preview_comment: '1'}, function(data, reply) {
  156.          var comment = $("#trac-comment-editor").next("div.comment").html(reply);
  157.          comment.toggle(comment.children().length != 0);
  158.        }, "#changelog .trac-loading");
  159.        /*]]>*/
  160.      });
  161.    </script>
  162.  </head>
  163.  <body id="wordpress-org" class="bbpress trac wporg-make make-bbpress">
  164. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P24PF4B" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  165.    <dl id="accessibility">
  166.        <dt>Skip to:</dt>
  167.        <dd><a href="#content" title="Skip to content">Content</a></dd>
  168.    </dl>
  169.    <div id="wporg-header">
  170.        <div id="header-inner">
  171. <button id="mobile-menu-button" aria-expanded="false"><span class="screen-reader-text">Toggle Menu</span></button>
  172.            <ul id="wporg-header-menu">
  173.                <li><a href="https://bbpress.org/about/">About</a></li>
  174.                <li><a href="https://bbpress.org/plugins/">Plugins</a></li>
  175.                <li><a href="https://bbpress.org/themes/">Themes</a></li>
  176.                <li><a href="https://codex.bbpress.org/">Documentation</a></li>
  177.                <li><a href="https://bbpress.org/blog/">Blog</a></li>
  178.                <li><a href="https://bbpress.org/forums/">Support</a></li>
  179.                <li class="download"><a href="https://bbpress.org/download/">Download</a></li>
  180.            </ul>
  181.            <h1><a href="https://bbpress.org">bbPress.org</a></h1>
  182.        </div>
  183.    </div>
  184. <div id="subnav">
  185. <div id="subnav-inner">
  186. <ul id="nav-user" class="menu">
  187. <li class="last first">
  188. <a href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fbbpress.trac.wordpress.org%2Fticket%2F2512" class="login">Login</a>
  189. </li>
  190. </ul>
  191. </div>
  192. </div>
  193. <div id="banner">
  194. <form id="search" action="/search" method="get">
  195.        <div>
  196.          <label for="proj-search">Search:</label>
  197.          <input type="text" id="proj-search" name="q" size="18" value="" />
  198.          <input type="submit" value="Search" />
  199.        </div>
  200.      </form>
  201. </div>
  202.    <div id="mainnav" class="nav">
  203.    <ul>
  204.      <li class="first"><a href="/timeline">Timeline</a></li><li class="active"><a href="/report">View Tickets</a></li><li><a href="/roadmap">Roadmap</a></li><li><a href="/browser">Browse Source</a></li><li class="last"><a href="/ticketgraph">Ticket Graph</a></li>
  205.    </ul>
  206.  </div>
  207.    <div id="main">
  208.      <div id="ctxtnav" class="nav">
  209.        <h2>Context Navigation</h2>
  210.        <ul>
  211.          <li class="first"><span>&larr; <a class="prev" href="/ticket/2511" title="Ticket #2511">Previous Ticket</a></span></li><li class="last"><span><a class="next" href="/ticket/2513" title="Ticket #2513">Next Ticket</a> &rarr;</span></li>
  212.        </ul>
  213.        <hr />
  214.      </div>
  215.    <div id="content" class="ticket">
  216.        <div id="ticket" class="trac-content ">
  217.  <div class="date">
  218.    <p>Opened <a class="timeline" href="/timeline?from=2014-01-12T13%3A24%3A35Z&amp;precision=second" title="See timeline at 01/12/2014 01:24:35 PM">11 years ago</a></p>
  219.    <p>Closed <a class="timeline" href="/timeline?from=2014-01-13T23%3A53%3A31Z&amp;precision=second" title="See timeline at 01/13/2014 11:53:31 PM">11 years ago</a></p>
  220.  </div>
  221.  <h2>
  222.    <a href="/ticket/2512" class="trac-id">#2512</a>
  223.    <span class="trac-status">
  224.      <a href="/query?status=closed">closed</a>
  225.    </span>
  226.    <span class="trac-type">
  227.      <a href="/query?status=!closed&amp;type=defect+(bug)">defect (bug)</a>
  228.    </span>
  229.    <span class="trac-resolution">
  230.      (<a href="/query?status=closed&amp;resolution=fixed">fixed</a>)
  231.    </span>
  232.  </h2>
  233.  <h1 id="trac-ticket-title" class="searchable">
  234.    <span class="summary">bbp_admin_repair_forum_visibility repair tool breaks private and hidden forum visibility</span>
  235.  </h1>
  236.  <table class="properties">
  237.    <tr>
  238.      <th id="h_reporter">Reported by:</th>
  239.      <td headers="h_reporter" class="searchable">
  240.  <a href="https://profiles.wordpress.org/netweb" data-nicename="netweb">
  241.    <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=96 2x" height="48" width="48" alt="netweb's profile" />
  242.  </a>
  243.    <a class="trac-author" href="/query?status=!closed&amp;reporter=netweb">netweb</a>
  244. </td>
  245.      <th id="h_owner">Owned by:</th>
  246.      <td headers="h_owner">
  247.  <a href="https://profiles.wordpress.org/netweb">
  248.    <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=96 2x" height="48" width="48" alt="netweb's profile" />
  249.  </a>
  250.    <a class="trac-author" href="/query?status=!closed&amp;owner=netweb">netweb</a>
  251. </td>
  252.    </tr>
  253.    <tr>
  254.        <th id="h_milestone">
  255.          Milestone:
  256.        </th>
  257.        <td headers="h_milestone">
  258.              <a class="closed milestone" href="/milestone/2.6" title="Completed 5 years ago (11/12/2019 05:00:00 PM)">2.6</a>
  259.        </td>
  260.        <th id="h_priority">
  261.          Priority:
  262.        </th>
  263.        <td headers="h_priority">
  264.              <a href="/query?status=!closed&amp;priority=normal">normal</a>
  265.        </td>
  266.    </tr><tr>
  267.        <th id="h_severity">
  268.          Severity:
  269.        </th>
  270.        <td headers="h_severity">
  271.              <a href="/query?status=!closed&amp;severity=major">major</a>
  272.        </td>
  273.        <th id="h_version">
  274.          Version:
  275.        </th>
  276.        <td headers="h_version">
  277.              <a href="/query?status=!closed&amp;version=2.5">2.5</a>
  278.        </td>
  279.    </tr><tr>
  280.        <th id="h_component">
  281.          Component:
  282.        </th>
  283.        <td headers="h_component">
  284.              <a href="/query?status=!closed&amp;component=Tools">Tools</a>
  285.        </td>
  286.        <th id="h_keywords" class="missing">
  287.          Keywords:
  288.        </th>
  289.        <td headers="h_keywords" class="searchable">
  290.        </td>
  291.    </tr><tr>
  292.        <th id="h_cc" class="missing">
  293.          Cc:
  294.        </th>
  295.        <td headers="h_cc" class="searchable">
  296.        </td>
  297.        <th class="missing">
  298.        </th>
  299.        <td>
  300.        </td>
  301.    </tr>
  302.  </table>
  303.  <div class="description">
  304.    <h3 id="comment:description">
  305.      Description
  306.    </h3>
  307.    <div class="searchable">
  308.      <p>
  309. Running the bbp_admin_repair_forum_visibility repair tool breaks forum visibility.<br />
  310. </p>
  311. <p>
  312. Each private <strong>and</strong> hidden forum are assigned <strong>both</strong> <code>_bbp_hidden_forums</code> and <code>_bbp_hidden_forums</code> statuses.<br />
  313. </p>
  314. <p>
  315. Repro:<br />
  316. </p>
  317. <ul><li>Create a hidden forum (post_id = 95887)
  318. </li><li>Create a private forum (post_id = 95889)
  319. </li><li>Run bbp_admin_repair_forum_visibility repair tool
  320. </li></ul><p>
  321. Postmeta Actual Results:<br />
  322. </p>
  323. <table class="wiki">
  324. <tr><td style="text-align: left">_bbp_hidden_forums </td><td>a:2:{i:0;s:5:&#34;95889&#34;;i:1;s:5:&#34;95887";}</td><td style="text-align: right"> yes
  325. </td></tr><tr><td>_bbp_private_forums</td><td style="text-align: right"> a:2:{i:0;s:5:&#34;95889&#34;;i:1;s:5:&#34;95887";}</td><td style="text-align: right"> yes
  326. </td></tr></table>
  327. <p>
  328. Postmeta Expected Results:<br />
  329. </p>
  330. <table class="wiki">
  331. <tr><td style="text-align: left">_bbp_hidden_forums </td><td>a:1:{i:1;s:5:&#34;95887";}</td><td style="text-align: right"> yes
  332. </td></tr><tr><td style="text-align: right"> _bbp_private_forums</td><td style="text-align: right"> a:1:{i:0;s:5:&#34;95889";}</td><td style="text-align: right"> yes
  333. </td></tr></table>
  334. <p>
  335. The repair tool <code>bbp_admin_repair_forum_visibility</code> (<a class="ext-link" href="https://bbpress.trac.wordpress.org/browser/trunk/includes/forums/functions.php#L927"><span class="icon">​</span>/includes/forums/functions.php#L927</a>) runs the follow two <code>WP_Query</code> queries:<br />
  336. </p>
  337. <div class="wiki-code"><div class="code"><pre><span class="x">        $private_forums = new WP_Query( array(
  338.                'suppress_filters' =&gt; true,
  339.                'nopaging'         =&gt; true,
  340.                'post_type'        =&gt; bbp_get_forum_post_type(),
  341.                'post_status'      =&gt; bbp_get_private_status_id(),
  342.                'fields'           =&gt; 'ids',
  343.                'cache_results'    =&gt; false
  344.        ) );
  345.        $hidden_forums = new WP_Query( array(
  346.                'suppress_filters' =&gt; true,
  347.                'nopaging'         =&gt; true,
  348.                'post_type'        =&gt; bbp_get_forum_post_type(),
  349.                'post_status'      =&gt; bbp_get_hidden_status_id(),
  350.                'fields'           =&gt; 'ids'
  351.        ) );
  352. </span></pre></div></div><p>
  353. For which the query result for <code>$private_forums</code> is:<br />
  354. </p>
  355. <div class="wiki-code"><div class="code"><pre><span class="x">WP_Query Object
  356. (
  357.    [query] =&gt; Array
  358.        (
  359.            [suppress_filters] =&gt; 1
  360.            [nopaging] =&gt; 1
  361.            [post_type] =&gt; forum
  362.            [post_status] =&gt; private
  363.            [fields] =&gt; ids
  364.            [cache_results] =&gt;
  365.        )
  366.  
  367.    [query_vars] =&gt; Array
  368.        (
  369.            [suppress_filters] =&gt; 1
  370.            [nopaging] =&gt; 1
  371.            [post_type] =&gt; forum
  372.            [post_status] =&gt; Array
  373.                (
  374.                    [0] =&gt; private
  375.                    [2] =&gt; hidden
  376.                )
  377.  
  378.            [fields] =&gt; ids
  379. </span></pre></div></div><div class="wiki-code"><div class="code"><pre><span class="k">SELECT</span> wp_posts<span class="p">.</span>ID
  380. <span class="k">FROM</span> wp_posts  
  381. <span class="k">WHERE</span> <span class="mi">1</span><span class="o">=</span><span class="mi">1</span>  
  382. <span class="k">AND</span> wp_posts<span class="p">.</span>post_type <span class="o">=</span> <span class="s1">'forum'</span>
  383. <span class="k">AND</span> <span class="p">(</span>wp_posts<span class="p">.</span>post_status <span class="o">=</span> <span class="s1">'hidden'</span> <span class="k">OR</span> wp_posts<span class="p">.</span>post_status <span class="o">=</span> <span class="s1">'private'</span><span class="p">)</span>  
  384. <span class="k">ORDER</span> <span class="k">BY</span> wp_posts<span class="p">.</span>post_date <span class="k">DESC</span>
  385. </pre></div></div><p>
  386. For which the query result for <code>$hidden_forums</code> is:<br />
  387. </p>
  388. <div class="wiki-code"><div class="code"><pre><span class="x">WP_Query Object
  389. (
  390.    [query] =&gt; Array
  391.        (
  392.            [suppress_filters] =&gt; 1
  393.            [nopaging] =&gt; 1
  394.            [post_type] =&gt; forum
  395.            [post_status] =&gt; hidden
  396.            [fields] =&gt; ids
  397.        )
  398.  
  399.    [query_vars] =&gt; Array
  400.        (
  401.            [suppress_filters] =&gt; 1
  402.            [nopaging] =&gt; 1
  403.            [post_type] =&gt; forum
  404.            [post_status] =&gt; Array
  405.                (
  406.                    [0] =&gt; hidden
  407.                    [1] =&gt; private
  408.                )
  409.  
  410.            [fields] =&gt; ids
  411. </span></pre></div></div><div class="wiki-code"><div class="code"><pre><span class="k">SELECT</span> wp_posts<span class="p">.</span>ID
  412. <span class="k">FROM</span> wp_posts  
  413. <span class="k">WHERE</span> <span class="mi">1</span><span class="o">=</span><span class="mi">1</span>  
  414. <span class="k">AND</span> wp_posts<span class="p">.</span>post_type <span class="o">=</span> <span class="s1">'forum'</span>
  415. <span class="k">AND</span> <span class="p">(</span>wp_posts<span class="p">.</span>post_status <span class="o">=</span> <span class="s1">'hidden'</span> <span class="k">OR</span> wp_posts<span class="p">.</span>post_status <span class="o">=</span> <span class="s1">'private'</span><span class="p">)</span>  
  416. <span class="k">ORDER</span> <span class="k">BY</span> wp_posts<span class="p">.</span>post_date <span class="k">DESC</span>
  417. </pre></div></div><p>
  418. Thus when <code>update_option</code> is executed both private and hidden forums BOTH get assigned a <code>_bbp_private_forums</code> and <code>_bbp_hidden_forums</code> value in <code>wp_postmeta</code><br />
  419. </p>
  420. <p>
  421. Workaround:<br />
  422. </p>
  423. <ul><li>Don't run the bbp_admin_repair_forum_visibility repair tool
  424. </li></ul><p>
  425. Via the backend forum edit admin:<br />
  426. </p>
  427. <ul><li>Change the forum visibility from eg. private to public and save
  428. </li><li>Change the forum visibility back to the original private status and save
  429. </li></ul>
  430.    </div>
  431.  </div>
  432. </div>
  433.          
  434.    <div id="attachments">
  435.        <h3 class="foldable">Attachments <span class="trac-count">(1)</span></h3>
  436.        <div class="attachments">
  437.          <dl class="attachments">
  438.              <dt>
  439.    <a href="/attachment/ticket/2512/2512.01.diff" title="View attachment">2512.01.diff</a><a href="/raw-attachment/ticket/2512/2512.01.diff" class="trac-rawlink" title="Download">​</a> (<span title="1150 bytes">1.1 KB</span>) - added by <span class="trac-author">thebrandonallen</span> <a class="timeline" href="/timeline?from=2014-01-13T18%3A38%3A47Z&amp;precision=second" title="See timeline at 01/13/2014 06:38:47 PM">11 years ago</a>.
  440.  </dt>
  441.          </dl>
  442.          <p>
  443.            Download all attachments as: <a rel="nofollow" href="/zip-attachment/ticket/2512/">.zip</a>
  444.          </p>
  445.          
  446.        </div>
  447.    </div>
  448.  
  449.        <div>
  450.          <div class="trac-noscript" style="position: relative">
  451.            <form id="prefs" method="get" action="/prefs" style="position: absolute; right: 0">
  452.              <div id="trac-comments-order">
  453.                <input type="radio" id="trac-comments-oldest" name="trac-comments-order" value="oldest" checked="checked" />
  454.                <label for="trac-comments-oldest">Oldest first</label>
  455.                <input type="radio" id="trac-comments-newest" name="trac-comments-order" value="newest" />
  456.                <label for="trac-comments-newest">Newest first</label>
  457.                <span id="trac-threaded-toggle" style="display: none">
  458.                  <input type="radio" id="trac-comments-threaded" name="trac-comments-order" value="threaded" />
  459.                  <label for="trac-comments-threaded">Threaded</label>
  460.                </span>
  461.              </div>
  462.              <div>
  463.                <input id="trac-show-comments-toggle" type="checkbox" checked="checked" />
  464.                <label for="trac-show-comments-toggle">Show comments</label>
  465.                <input id="trac-show-property-changes-toggle" type="checkbox" />
  466.                <label for="trac-show-property-changes-toggle">Show property changes</label>
  467.              </div>
  468.            </form>
  469.          </div>
  470.          <h3 class="foldable">Change History <span class="trac-count">(8)</span></h3>
  471.          <div id="changelog">
  472.              <div class="change" id="trac-change-1-1389534193987282">
  473.                
  474.  <h3 class="change">
  475.    <span class="threading">
  476.      <span id="comment:1" class="cnum">
  477.    <a href="#comment:1">#1</a>
  478.  </span>
  479.    </span>
  480.        <span class="avatar">
  481.          <span class="username-line"><a href="https://profiles.wordpress.org/netweb" class="profile-link">
  482.            <img src="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="netweb" data-nicename="netweb"><span class="trac-author">netweb</span></span></a></span>
  483.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-12T13%3A43%3A13Z&amp;precision=second" title="See timeline at 01/12/2014 01:43:13 PM">11 years</a> ago</span>
  484.        </span>
  485.    <div class="trac-ticket-buttons">
  486.    </div>
  487.  </h3>
  488.  <div class="trac-ticket-buttons"></div>
  489.    <div class="comment searchable">
  490.      <p>
  491. Oops, second line above should read:<br />
  492. </p>
  493. <p>
  494. Each private <strong>and</strong> hidden forum are assigned <strong>both</strong> <code>_bbp_private_forums</code> and <code>_bbp_hidden_forums</code> statuses.<br />
  495. </p>
  496.  
  497.    </div>
  498.  
  499.              </div>
  500.              <div class="change" id="trac-change-2-1389575994227329">
  501.                
  502.  <h3 class="change">
  503.    <span class="threading">
  504.      <span id="comment:2" class="cnum">
  505.    <a href="#comment:2">#2</a>
  506.  </span>
  507.    </span>
  508.        <span class="avatar">
  509.          <span class="username-line"><a href="https://profiles.wordpress.org/johnjamesjacoby" class="profile-link">
  510.            <img src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="johnjamesjacoby" data-nicename="johnjamesjacoby"><span class="trac-author">johnjamesjacoby</span></span></a></span>
  511.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T01%3A19%3A54Z&amp;precision=second" title="See timeline at 01/13/2014 01:19:54 AM">11 years</a> ago</span>
  512.        </span>
  513.    <div class="trac-ticket-buttons">
  514.    </div>
  515.  </h3>
  516.  <div class="trac-ticket-buttons"></div>
  517.    <div class="comment searchable">
  518.      <p>
  519. Gut tells me there's a filter adding the additional post statuses in that needs to be unhooked. Though, wonder why it's not obeying <code>suppress_filters</code>.<br />
  520. </p>
  521.  
  522.    </div>
  523.  <div class="trac-lastedit ">
  524.    Last edited <a class="timeline" href="/timeline?from=2014-01-13T01%3A20%3A46Z&amp;precision=second" title="See timeline at 01/13/2014 01:20:46 AM">11 years ago</a>
  525.        by <span class="trac-author">johnjamesjacoby</span>
  526.      (<a href="/ticket/2512?cversion=0&amp;cnum_hist=2#comment:2">previous</a>)
  527.      (<a href="/ticket/2512?action=comment-diff&amp;cnum=2&amp;version=1">diff</a>)
  528.  </div>
  529.  
  530.              </div>
  531.              <div class="change" id="trac-change-3-1389638313349920">
  532.                
  533.  <h3 class="change">
  534.    <span class="threading">
  535.      <span id="comment:3" class="cnum">
  536.    <a href="#comment:3">#3</a>
  537.  </span>
  538.          <span>follow-up:</span>
  539.    <a href="#comment:5" class="follow-up">↓ 5</a>
  540.    </span>
  541.        <span class="avatar">
  542.          <span class="username-line"><a href="https://profiles.wordpress.org/thebrandonallen" class="profile-link">
  543.            <img src="https://wordpress.org/grav-redirect.php?user=thebrandonallen&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=thebrandonallen&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="thebrandonallen" data-nicename="thebrandonallen"><span class="trac-author">thebrandonallen</span></span></a></span>
  544.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T18%3A38%3A33Z&amp;precision=second" title="See timeline at 01/13/2014 06:38:33 PM">11 years</a> ago</span>
  545.        </span>
  546.    <div class="trac-ticket-buttons">
  547.    </div>
  548.  </h3>
  549.  <div class="trac-ticket-buttons"></div>
  550.    <div class="comment searchable">
  551.      <p>
  552. This appears to be related to <code>bbp_pre_get_posts_normalize_forum_visibility()</code> added with <code>pre_get_posts</code><br />
  553. <a class="ext-link" href="https://bbpress.trac.wordpress.org/browser/trunk/includes/core/actions.php#L152"><span class="icon">​</span>https://bbpress.trac.wordpress.org/browser/trunk/includes/core/actions.php#L152</a><br />
  554. </p>
  555. <p>
  556. Since, <code>pre_get_posts</code> is an action, <code>suppress_filters</code> has no effect. Attached patch should fix the issue.<br />
  557. </p>
  558.  
  559.    </div>
  560.  
  561.              </div>
  562.              <div class="change">
  563.                
  564.  <h3 class="change">
  565.    <span class="threading">
  566.    </span>
  567.        <span class="avatar">
  568.          <span class="username-line"><a href="https://profiles.wordpress.org/thebrandonallen" class="profile-link">
  569.            <img src="https://wordpress.org/grav-redirect.php?user=thebrandonallen&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=thebrandonallen&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="thebrandonallen" data-nicename="thebrandonallen"><span class="trac-author">thebrandonallen</span></span></a></span>
  570.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T18%3A38%3A47Z&amp;precision=second" title="See timeline at 01/13/2014 06:38:47 PM">11 years</a> ago</span>
  571.        </span>
  572.    <div class="trac-ticket-buttons">
  573.    </div>
  574.  </h3>
  575.  <div class="trac-ticket-buttons"></div>
  576.  <ul class="changes">
  577.    <li class="trac-field-attachment">
  578.      <strong class="trac-field-attachment">Attachment</strong>
  579.        <a href="/attachment/ticket/2512/2512.01.diff"><em>2512.01.diff</em></a><a href="/raw-attachment/ticket/2512/2512.01.diff" title="Download" class="trac-rawlink">​</a>
  580.          added
  581.    </li>
  582.  </ul>
  583.  
  584.              </div>
  585.              <div class="change" id="trac-change-4-1389656023604145">
  586.                
  587.  <h3 class="change">
  588.    <span class="threading">
  589.      <span id="comment:4" class="cnum">
  590.    <a href="#comment:4">#4</a>
  591.  </span>
  592.    </span>
  593.        <span class="avatar">
  594.          <span class="username-line"><a href="https://profiles.wordpress.org/johnjamesjacoby" class="profile-link">
  595.            <img src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="johnjamesjacoby" data-nicename="johnjamesjacoby"><span class="trac-author">johnjamesjacoby</span></span></a></span>
  596.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T23%3A33%3A43Z&amp;precision=second" title="See timeline at 01/13/2014 11:33:43 PM">11 years</a> ago</span>
  597.        </span>
  598.    <div class="trac-ticket-buttons">
  599.    </div>
  600.  </h3>
  601.  <div class="trac-ticket-buttons"></div>
  602.  <ul class="changes">
  603.    <li class="trac-field-component">
  604.      <strong class="trac-field-component">Component</strong>
  605.        changed from <em>Forums</em> to <em>Tools</em>
  606.    </li><li class="trac-field-keywords">
  607.      <strong class="trac-field-keywords">Keywords</strong>
  608.        <em>commit</em> added; <em>needs-patch</em> removed
  609.    </li><li class="trac-field-milestone">
  610.      <strong class="trac-field-milestone">Milestone</strong>
  611.        changed from <em>Awaiting Review</em> to <em>2.6</em>
  612.    </li><li class="trac-field-severity">
  613.      <strong class="trac-field-severity">Severity</strong>
  614.        changed from <em>normal</em> to <em>major</em>
  615.    </li>
  616.  </ul>
  617.    <div class="comment searchable">
  618.      <p>
  619. Perfect. Run it.<br />
  620. </p>
  621.  
  622.    </div>
  623.  
  624.              </div>
  625.              <div class="change" id="trac-change-5-1389656482003345">
  626.                
  627.  <h3 class="change">
  628.    <span class="threading">
  629.      <span id="comment:5" class="cnum">
  630.    <a href="#comment:5">#5</a>
  631.  </span>
  632.        in reply to:
  633.    <a href="#comment:3">↑ 3</a>
  634.    </span>
  635.        <span class="avatar">
  636.          <span class="username-line"><a href="https://profiles.wordpress.org/netweb" class="profile-link">
  637.            <img src="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="netweb" data-nicename="netweb"><span class="trac-author">netweb</span></span></a></span>
  638.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T23%3A41%3A22Z&amp;precision=second" title="See timeline at 01/13/2014 11:41:22 PM">11 years</a> ago</span>
  639.        </span>
  640.    <div class="trac-ticket-buttons">
  641.    </div>
  642.  </h3>
  643.  <div class="trac-ticket-buttons"></div>
  644.  <ul class="changes">
  645.    <li class="trac-field-component">
  646.      <strong class="trac-field-component">Component</strong>
  647.        changed from <em>Tools</em> to <em>Forums</em>
  648.    </li><li class="trac-field-keywords">
  649.      <strong class="trac-field-keywords">Keywords</strong>
  650.        <em>has-patch</em> added; <em>commit</em> removed
  651.    </li><li class="trac-field-milestone">
  652.      <strong class="trac-field-milestone">Milestone</strong>
  653.        changed from <em>2.6</em> to <em>Awaiting Review</em>
  654.    </li><li class="trac-field-severity">
  655.      <strong class="trac-field-severity">Severity</strong>
  656.        changed from <em>major</em> to <em>normal</em>
  657.    </li>
  658.  </ul>
  659.    <div class="comment searchable">
  660.      <p>
  661. Replying to <a class="ticket" href="/ticket/2512#comment:3" title="Comment 3">thebrandonallen</a>:<br />
  662. </p>
  663. <blockquote class="citation">
  664. <p>
  665. This appears to be related to <code>bbp_pre_get_posts_normalize_forum_visibility()</code> added with <code>pre_get_posts</code>. Since, <code>pre_get_posts</code> is an action, <code>suppress_filters</code> has no effect. Attached patch should fix the issue.<br />
  666. </p>
  667. </blockquote>
  668. <p>
  669. Yep, that's it. Thanks for the patch, works perfectly.<br />
  670. </p>
  671.  
  672.    </div>
  673.  
  674.              </div>
  675.              <div class="change" id="trac-change-6-1389656740787464">
  676.                
  677.  <h3 class="change">
  678.    <span class="threading">
  679.      <span id="comment:6" class="cnum">
  680.    <a href="#comment:6">#6</a>
  681.  </span>
  682.    </span>
  683.        <span class="avatar">
  684.          <span class="username-line"><a href="https://profiles.wordpress.org/netweb" class="profile-link">
  685.            <img src="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="netweb" data-nicename="netweb"><span class="trac-author">netweb</span></span></a></span>
  686.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T23%3A45%3A40Z&amp;precision=second" title="See timeline at 01/13/2014 11:45:40 PM">11 years</a> ago</span>
  687.        </span>
  688.    <div class="trac-ticket-buttons">
  689.    </div>
  690.  </h3>
  691.  <div class="trac-ticket-buttons"></div>
  692.  <ul class="changes">
  693.    <li class="trac-field-component">
  694.      <strong class="trac-field-component">Component</strong>
  695.        changed from <em>Forums</em> to <em>Tools</em>
  696.    </li><li class="trac-field-keywords">
  697.      <strong class="trac-field-keywords">Keywords</strong>
  698.        <em>has-patch</em> removed
  699.    </li><li class="trac-field-milestone">
  700.      <strong class="trac-field-milestone">Milestone</strong>
  701.        changed from <em>Awaiting Review</em> to <em>2.6</em>
  702.    </li><li class="trac-field-severity">
  703.      <strong class="trac-field-severity">Severity</strong>
  704.        changed from <em>normal</em> to <em>major</em>
  705.    </li>
  706.  </ul>
  707.    <div class="comment searchable">
  708.      <p>
  709. <em>Trac used to notify you that someone else had updated the ticket before you submit your comment, weird''<br />
  710. </em></p>
  711.  
  712.    </div>
  713.  
  714.              </div>
  715.              <div class="change" id="trac-change-7-1389657211439551">
  716.                
  717.  <h3 class="change">
  718.    <span class="threading">
  719.      <span id="comment:7" class="cnum">
  720.    <a href="#comment:7">#7</a>
  721.  </span>
  722.    </span>
  723.        <span class="avatar">
  724.          <span class="username-line"><a href="https://profiles.wordpress.org/netweb" class="profile-link">
  725.            <img src="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=netweb&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="netweb" data-nicename="netweb"><span class="trac-author">netweb</span></span></a></span>
  726.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-01-13T23%3A53%3A31Z&amp;precision=second" title="See timeline at 01/13/2014 11:53:31 PM">11 years</a> ago</span>
  727.        </span>
  728.    <div class="trac-ticket-buttons">
  729.    </div>
  730.  </h3>
  731.  <div class="trac-ticket-buttons"></div>
  732.  <ul class="changes">
  733.    <li class="trac-field-owner">
  734.      <strong class="trac-field-owner">Owner</strong>
  735.        set to <em>netweb</em>
  736.    </li><li class="trac-field-resolution">
  737.      <strong class="trac-field-resolution">Resolution</strong>
  738.        set to <em>fixed</em>
  739.    </li><li class="trac-field-status">
  740.      <strong class="trac-field-status">Status</strong>
  741.        changed from <em>new</em> to <em>closed</em>
  742.    </li>
  743.  </ul>
  744.    <div class="comment searchable">
  745.      <p>
  746. In <a class="changeset" href="/changeset/5257" title="Remove `pre_get_posts` action ...">5257</a>:<br />
  747. </p>
  748. <div class="message"><p>
  749. Remove <code>pre_get_posts</code> action <code>bbp_pre_get_posts_normalize_forum_visibility</code> from forum visibility repair tool to prevent hidden and private post status injected into WP_Query. Props thebrandonallen. Fixes <a class="closed ticket" href="/ticket/2512" title="#2512: defect (bug): bbp_admin_repair_forum_visibility repair tool breaks private and ... (closed: fixed)">#2512</a> <br />
  750. </p>
  751. </div>
  752.    </div>
  753.  
  754.              </div>
  755.          </div>
  756.        </div>
  757.      <div id="help"><strong>Note:</strong> See
  758.        <a href="/wiki/TracTickets">TracTickets</a> for help on using
  759.        tickets.</div>
  760.    </div>
  761.    <script type="text/javascript">
  762.        jQuery.loadStyleSheet("/pygments/trac.css", "text/css");
  763.    </script>
  764.    <div id="altlinks">
  765.    <a class="preferences-link" href="/prefs">Trac UI Preferences</a>
  766.      <h3>Download in other formats:</h3>
  767.      <ul>
  768.        <li class="first">
  769.          <a rel="nofollow" href="/ticket/2512?format=csv" class="csv">Comma-delimited Text</a>
  770.        </li><li>
  771.          <a rel="nofollow" href="/ticket/2512?format=tab" class="tab">Tab-delimited Text</a>
  772.        </li><li class="last">
  773.          <a rel="nofollow" href="/ticket/2512?format=rss" class="rss">RSS Feed</a>
  774.        </li>
  775.      </ul>
  776. </div>
  777.    </div>
  778. <div id="footer">
  779. <div class="links">
  780. <p>
  781. See also:
  782. <a href="http://wordpress.org">WordPress.org</a> •
  783. <a href="http://bbpress.org">bbPress.org</a> •
  784. <a href="http://buddypress.org">BuddyPress.org</a> •
  785. <a href="http://ma.tt">Matt</a> •
  786. <a href="http://bbpress.org/feed/" title="RSS Feed for Articles">Blog RSS</a>
  787. </p>
  788. </div>
  789. <div class="details">
  790. <p>
  791. <a href="http://twitter.com/bbpress" class="twitter">Follow bbPress on Twitter</a> •
  792. <a href="http://bbpress.org/about/gpl/">GPL</a> •
  793. <a href="http://bbpress.org/contact/">Contact Us</a> •
  794. <a href="http://bbpress.org/terms/">Terms of Service</a>
  795. </p>
  796. </div>
  797. </div>
  798. <script>
  799. var wpTracCurrentUser = "anonymous";
  800. </script>
  801. <script src="https://s.w.org/style/js/navigation.min.js?20190128"></script>
  802. <script src="https://s.w.org/style/trac/jquery.caret.min.js?ver=2015-02-01"></script>
  803. <script src="https://s.w.org/style/trac/jquery.atwho.min.js?ver=1.0.1"></script>
  804. <script src="https://s.w.org/style/trac/wp-trac.js?220"></script>
  805. </body>
  806. </html>
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda