<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[11022] sites/trunk/buddypress.org/public_html/wp-content/themes: BuddyPress: Add script tag to remove "no-js" class from body in bbPress template parts.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/11022">11022</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/11022","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>johnjamesjacoby</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-06-08 09:37:35 +0000 (Tue, 08 Jun 2021)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>BuddyPress: Add script tag to remove "no-js" class from body in bbPress template parts.

This change is necessary to ensure the editor bar is visible in the Topic & Reply forms.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasebbpressformtopicphp">sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbpressorgbbpressformtopicphp">sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbuddypressorgbbpressformtopicphp">sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasebbpressformreplyphp">sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-reply.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasebbpressformreplyphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-reply.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-reply.php                           (rev 0)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-reply.php     2021-06-08 09:37:35 UTC (rev 11022)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,238 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+// Exit if accessed directly
+defined( 'ABSPATH' ) || exit;
+
+if ( bbp_is_reply_edit() ) : ?>
+
+<div id="bbpress-forums" class="bbpress-wrapper">
+
+       <?php bbp_breadcrumb(); ?>
+
+<?php endif; ?>
+
+<?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
+
+       <script type="text/javascript">
+               document.body.className = document.body.className.replace( 'no-js', 'js' );
+       </script>
+
+       <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
+
+               <form id="new-post" name="new-post" method="post">
+
+                       <?php do_action( 'bbp_theme_before_reply_form' ); ?>
+
+                       <fieldset class="bbp-form">
+                               <legend><?php printf( esc_html__( 'Reply To: %s', 'bbpress' ), ( bbp_get_form_reply_to() ) ? sprintf( esc_html__( 'Reply #%1$s in %2$s', 'bbpress' ), bbp_get_form_reply_to(), bbp_get_topic_title() ) : bbp_get_topic_title() ); ?></legend>
+
+                               <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
+
+                               <?php if ( ! bbp_is_topic_open() && ! bbp_is_reply_edit() ) : ?>
+
+                                       <div class="bbp-template-notice">
+                                               <ul>
+                                                       <li><?php esc_html_e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to reply.', 'bbpress' ); ?></li>
+                                               </ul>
+                                       </div>
+
+                               <?php endif; ?>
+
+                               <?php if ( ! bbp_is_reply_edit() && bbp_is_forum_closed() ) : ?>
+
+                                       <div class="bbp-template-notice">
+                                               <ul>
+                                                       <li><?php esc_html_e( 'This forum is closed to new content, however your posting capabilities still allow you to post.', 'bbpress' ); ?></li>
+                                               </ul>
+                                       </div>
+
+                               <?php endif; ?>
+
+                               <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
+
+                                       <div class="bbp-template-notice">
+                                               <ul>
+                                                       <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
+                                               </ul>
+                                       </div>
+
+                               <?php endif; ?>
+
+                               <?php do_action( 'bbp_template_notices' ); ?>
+
+                               <div>
+
+                                       <?php bbp_get_template_part( 'form', 'anonymous' ); ?>
+
+                                       <?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
+
+                                       <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
+
+                                       <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
+
+                                       <?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
+
+                                               <p class="form-allowed-tags">
+                                                       <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'bbpress' ); ?></label><br />
+                                                       <code><?php bbp_allowed_tags(); ?></code>
+                                               </p>
+
+                                       <?php endif; ?>
+
+                                       <?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags', bbp_get_topic_id() ) ) : ?>
+
+                                               <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
+
+                                               <p>
+                                                       <label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'bbpress' ); ?></label><br />
+                                                       <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
+                                               </p>
+
+                                               <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
+
+                                       <?php endif; ?>
+
+                                       <?php if ( bbp_is_subscriptions_active() && ! bbp_is_anonymous() && ( ! bbp_is_reply_edit() || ( bbp_is_reply_edit() && ! bbp_is_reply_anonymous() ) ) ) : ?>
+
+                                               <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
+
+                                               <p>
+
+                                                       <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
+
+                                                       <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?>
+
+                                                               <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
+
+                                                       <?php else : ?>
+
+                                                               <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
+
+                                                       <?php endif; ?>
+
+                                               </p>
+
+                                               <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
+
+                                       <?php endif; ?>
+
+                                       <?php if ( bbp_is_reply_edit() ) : ?>
+
+                                               <?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
+
+                                                       <?php do_action( 'bbp_theme_before_reply_form_reply_to' ); ?>
+
+                                                       <p class="form-reply-to">
+                                                               <label for="bbp_reply_to"><?php esc_html_e( 'Reply To:', 'bbpress' ); ?></label><br />
+                                                               <?php bbp_reply_to_dropdown(); ?>
+                                                       </p>
+
+                                                       <?php do_action( 'bbp_theme_after_reply_form_reply_to' ); ?>
+
+                                                       <?php do_action( 'bbp_theme_before_reply_form_status' ); ?>
+
+                                                       <p>
+                                                               <label for="bbp_reply_status"><?php esc_html_e( 'Reply Status:', 'bbpress' ); ?></label><br />
+                                                               <?php bbp_form_reply_status_dropdown(); ?>
+                                                       </p>
+
+                                                       <?php do_action( 'bbp_theme_after_reply_form_status' ); ?>
+
+                                               <?php endif; ?>
+
+                                               <?php if ( bbp_allow_revisions() ) : ?>
+
+                                                       <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?>
+
+                                                       <fieldset class="bbp-form">
+                                                               <legend>
+                                                                       <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> />
+                                                                       <label for="bbp_log_reply_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
+                                                               </legend>
+
+                                                               <div>
+                                                                       <label for="bbp_reply_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
+                                                                       <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
+                                                               </div>
+                                                       </fieldset>
+
+                                                       <?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?>
+
+                                               <?php endif; ?>
+
+                                       <?php endif; ?>
+
+                                       <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
+
+                                       <div class="bbp-submit-wrapper">
+
+                                               <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>
+
+                                               <?php bbp_cancel_reply_to_link(); ?>
+
+                                               <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
+
+                                               <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>
+
+                                       </div>
+
+                                       <?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?>
+
+                               </div>
+
+                               <?php bbp_reply_form_fields(); ?>
+
+                       </fieldset>
+
+                       <?php do_action( 'bbp_theme_after_reply_form' ); ?>
+
+               </form>
+       </div>
+
+<?php elseif ( bbp_is_topic_closed() ) : ?>
+
+       <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+               <div class="bbp-template-notice">
+                       <ul>
+                               <li><?php printf( esc_html__( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li>
+                       </ul>
+               </div>
+       </div>
+
+<?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ) : ?>
+
+       <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+               <div class="bbp-template-notice">
+                       <ul>
+                               <li><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>
+                       </ul>
+               </div>
+       </div>
+
+<?php else : ?>
+
+       <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+               <div class="bbp-template-notice">
+                       <ul>
+                               <li><?php is_user_logged_in()
+                                       ? esc_html_e( 'You cannot reply to this topic.',               'bbpress' )
+                                       : esc_html_e( 'You must be logged in to reply to this topic.', 'bbpress' );
+                               ?></li>
+                       </ul>
+               </div>
+
+               <?php if ( ! is_user_logged_in() ) : ?>
+
+                       <?php bbp_get_template_part( 'form', 'user-login' ); ?>
+
+               <?php endif; ?>
+
+       </div>
+
+<?php endif; ?>
+
+<?php if ( bbp_is_reply_edit() ) : ?>
+
+</div>
+
+<?php endif;
</ins></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasebbpressformtopicphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php   2021-06-08 06:20:45 UTC (rev 11021)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php     2021-06-08 09:37:35 UTC (rev 11022)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,6 +6,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        <script type="text/javascript">
+               document.body.className = document.body.className.replace( 'no-js', 'js' );
+       </script>
+
</ins><span class="cx" style="display: block; padding: 0 10px">         <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <form id="new-post" name="new-post" method="post" action="">
</span></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbpressorgbbpressformtopicphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php       2021-06-08 06:20:45 UTC (rev 11021)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php 2021-06-08 09:37:35 UTC (rev 11022)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,6 +6,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        <script type="text/javascript">
+               document.body.className = document.body.className.replace( 'no-js', 'js' );
+       </script>
+
</ins><span class="cx" style="display: block; padding: 0 10px">         <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <form id="new-post" name="new-post" method="post" action="">
</span></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbuddypressorgbbpressformtopicphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php    2021-06-08 06:20:45 UTC (rev 11021)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php      2021-06-08 09:37:35 UTC (rev 11022)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,6 +6,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        <script type="text/javascript">
+               document.body.className = document.body.className.replace( 'no-js', 'js' );
+       </script>
+
</ins><span class="cx" style="display: block; padding: 0 10px">         <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <form id="new-post" name="new-post" method="post" action="">
</span></span></pre>
</div>
</div>

</body>
</html>