<!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>[9133] sites/trunk/buddypress.org/public_html/wp-content/themes: BuddyPress: Enqueue bb-Base styling for developer.buddypress.org.</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/9133">9133</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/9133","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>2019-09-10 04:51:17 +0000 (Tue, 10 Sep 2019)</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: Enqueue bb-Base styling for developer.buddypress.org.

Remove redundant styling from bbpress/buddypress specific themes.

See <a href="http://meta.trac.wordpress.org/ticket/4601">#4601</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasefunctionsphp">sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasestylecss">sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/style.css</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbpressorgfunctionsphp">sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/functions.php</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbporgdevelopercssstylecss">sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/css/style.css</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbporgdeveloperfunctionsphp">sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/functions.php</a></li>
<li><a href="#sitestrunkbuddypressorgpublic_htmlwpcontentthemesbuddypressorgfunctionsphp">sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/functions.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasefunctionsphp"></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/functions.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/functions.php    2019-09-10 04:06:07 UTC (rev 9132)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php      2019-09-10 04:51:17 UTC (rev 9133)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -596,3 +596,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">        return $in_bbpress;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'is_bbpress', 'bb_base_filter_is_bbpress' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Redirect away from the login page (if you're already logged in)
+ */
+function bb_base_login_redirect() {
+       if ( is_user_logged_in() && is_page( 'login' ) ) {
+               wp_safe_redirect( bbp_get_forums_url() );
+               exit();
+       }
+}
+add_action( 'bbp_template_redirect', 'bb_base_login_redirect', 11 );
</ins></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbbasestylecss"></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/style.css</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/style.css        2019-09-10 04:06:07 UTC (rev 9132)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/style.css  2019-09-10 04:51:17 UTC (rev 9133)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1614,6 +1614,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">        margin: 0 auto;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+#wp-admin-bar-my-account img.avatar {
+       border-radius: 50%;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* =Responsive Overrides
</span><span class="cx" style="display: block; padding: 0 10px"> -------------------------------------------------------------- */
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1750,8 +1754,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                color: #fff;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px">        #wp-admin-bar-my-account img.avatar {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                height: 38px;
-               width: 38px;
-               border-radius: 50%;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         height: 38px !important;
+               width: 38px !important;
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbbpressorgfunctionsphp"></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/functions.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/functions.php        2019-09-10 04:06:07 UTC (rev 9132)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/functions.php  2019-09-10 04:51:17 UTC (rev 9133)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,12 +1 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
-/**
- * Redirect away from the login page if you're already logged in
- */
-function bb_theme_login_redirect() {
-       if ( is_user_logged_in() && is_page( 'login' ) ) {
-               wp_safe_redirect( 'https://bbpress.org/forums/' );
-               exit();
-       }
-}
-add_action( 'bbp_template_redirect', 'bb_theme_login_redirect', 11 );
</del></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbporgdevelopercssstylecss"></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/bporg-developer/css/style.css</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/bporg-developer/css/style.css    2019-09-10 04:06:07 UTC (rev 9132)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/css/style.css      2019-09-10 04:51:17 UTC (rev 9133)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,10 +10,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        margin-top: 42px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-#wpadminbar {
-       position: absolute;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> #header-inner {
</span><span class="cx" style="display: block; padding: 0 10px">        margin: 0 auto;
</span><span class="cx" style="display: block; padding: 0 10px">        width: 100%;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,12 +17,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        padding: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-@media screen and (min-width: 960px) {
-       #header-inner, #footer {
-               max-width: 960px;
-       }
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> #header #network-title {
</span><span class="cx" style="display: block; padding: 0 10px">        text-indent: -9999px;
</span><span class="cx" style="display: block; padding: 0 10px">        width: 265px;
</span></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbporgdeveloperfunctionsphp"></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/bporg-developer/functions.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/bporg-developer/functions.php    2019-09-10 04:06:07 UTC (rev 9132)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/functions.php      2019-09-10 04:51:17 UTC (rev 9133)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,4 +1,4 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php namespace DevHub;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px">  * BuddyPress Developer Theme functions.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,6 +5,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @package bporg-developer
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 1.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+namespace DevHub;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> // Exit if accessed directly
</span><span class="cx" style="display: block; padding: 0 10px"> defined( 'ABSPATH' ) || exit;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,12 +16,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 1.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_enqueue_styles() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    wp_enqueue_style( 'wporg-developer', get_template_directory_uri() . '/style.css' );
-    wp_enqueue_style( 'bporg-developer-main',
-        get_stylesheet_directory_uri() . '/css/style.css',
-        array( 'wp-dev-sass-compiled', 'dashicons' ),
-        wp_get_theme()->get('Version')
-    );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wp_enqueue_style( 'bb-base', content_url( 'themes' ) . '/bb-base/style.css' );
+       wp_enqueue_style( 'wporg-developer', get_template_directory_uri() . '/style.css' );
+       wp_enqueue_style( 'bporg-developer-main',
+               get_stylesheet_directory_uri() . '/css/style.css',
+               array( 'wp-dev-sass-compiled', 'dashicons', 'bb-base' ),
+               wp_get_theme()->get( 'Version' )
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\bporg_developer_enqueue_styles', 20 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,8 +35,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return array The list of Handbook post types.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_register_rest_api( $post_types = array() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $post_types[] = 'bp-rest-api';
-    return $post_types;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_types[] = 'bp-rest-api';
+       return $post_types;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'handbook_post_types', __NAMESPACE__ . '\\bporg_developer_register_rest_api', 100, 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -48,11 +50,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string The BP REST API post type label.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_set_rest_api_label( $label, $post_type ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    if ( 'bp-rest-api-handbook' === $post_type ) {
-        $label = __( 'BP REST API Handbook', 'bporg-developer' );
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( 'bp-rest-api-handbook' === $post_type ) {
+               $label = __( 'BP REST API Handbook', 'bporg-developer' );
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    return $label;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return $label;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'handbook_label', __NAMESPACE__ . '\\bporg_developer_set_rest_api_label', 100, 2 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,181 +64,173 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 1.0.0.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_starter_content() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    register_nav_menu( 'header-nav-menu', 'Main nav bar' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ register_nav_menu( 'header-nav-menu', 'Main nav bar' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    add_theme_support( 'title-tag' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_theme_support( 'title-tag' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    add_theme_support( 'starter-content', array(
-        'widgets' => array(
-            // Place the BP REST API Chapters accordeon.
-            'bp-rest-api-handbook' => array(
-                'bp-rest-api-chapters' => array(
-                    'handbook_pages',
-                    array(
-                        'title'  => __( 'Chapters', 'bporg-developer' ),
-                    ),
-                ),
-            ),
-
-            // Place a link to the codex.
-            'landing-footer-1' => array(
-                'more-resources' => array(
-                    'text',
-                    array(
-                        'title'  => __( 'More resources', 'bporg-developer' ),
-                        'text'   => sprintf( '<a href="https://codex.buddypress.org/">%s</a>', __( 'BuddyPress Codex', 'bporg-developer' ) ),
-                        'filter' => true,
-                        'visual' => true,
-                    ),
-                ),
-            ),
-
-            // Place a link to the support forums.
-            'landing-footer-2' => array(
-                'more-resources' => array(
-                    'text',
-                    array(
-                        'title'  => __( 'Need help?', 'bporg-developer' ),
-                        'text'   => sprintf( '<a href="https://buddypress.org/support/">%s</a>', __( 'BuddyPress support forums', 'bporg-developer' ) ),
-                        'filter' => true,
-                        'visual' => true,
-                    ),
-                ),
-            ),
-        ),
-
-        // Create initial pages.
-        'posts' => array(
-            'landing' => array(
-                'post_title' => __( 'Home', 'bporg-developer' ),
-                'post_type'  => 'page',
-                'post_name'  => 'landing',
-                'template'   => 'page-home-landing.php',
-            ),
-            'reference' => array(
-                'post_title' => __( 'Reference', 'bporg-developer' ),
-                'post_type'  => 'page',
-                'post_name'  => 'reference',
-                'template'   => 'page-under-construction.php',
-            ),
-            'bp-rest-api' => array(
-                'post_title'   => __( 'BP REST API Handbook', 'bporg-developer' ),
-                'post_type'    => 'bp-rest-api-handbook',
-                'post_name'    => 'bp-rest-api',
-                'menu_order'   => 0,
-                'post_content' => __( 'Let’s start documenting the BP REST API!', 'bporg-developer' ),
-            ),
-        ),
-
-        // Default to a static front page and assign the front and posts pages.
-        'options' => array(
-            'show_on_front'  => 'page',
-            'page_on_front'  => '{{landing}}',
-        ),
-
-        // Set the site title and description.
-        'theme_mods'  => array(
-            'blogname'        => __( 'BuddyPress Developer Resources', 'bporg-developer' ),
-            'blogdescription' => __( 'Your best buddies ever to help you code.', 'bporg-developer' ),
-        ),
-
-        // Set up nav menus
-        'nav_menus'   => array(
-            // Assign a menu to the "header-nav-menu" location.
-            'header-nav-menu' => array(
-                'name'  => __( 'BuddyPress.org nav', 'bporg-developer' ),
-                'items' => array(
-                    'about' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'About', 'bporg-developer' ),
-                        'url'   => 'https://buddypress.org/about/',
-                    ),
-                    'plugins' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Plugins', 'bporg-developer' ),
-                        'url'   => 'https://buddypress.org/plugins/',
-                    ),
-                    'themes' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Themes', 'bporg-developer' ),
-                        'url'   => 'https://buddypress.org/themes/',
-                    ),
-                    'documentation' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Documentation', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/',
-                    ),
-                    'blog' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Blog', 'bporg-developer' ),
-                        'url'   => 'https://buddypress.org/blog/',
-                    ),
-                    'download' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Download', 'bporg-developer' ),
-                        'url'   => 'https://buddypress.org/download/',
-                    ),
-                ),
-            ),
-
-            // Assign a menu to the "devhub-menu" location.
-            'devhub-menu' => array(
-                'name'  => __( 'DevHub menu', 'bporg-developer' ),
-                'items' => array(
-                    'link_home' => array(
-                        'title' => __( 'All Developer Resources', 'bporg-developer' ),
-                    ),
-                ),
-            ),
-
-            // Assign a menu to the "reference-home-api" location.
-            'reference-home-api' => array(
-                'name'  => __( 'BuddyPress API', 'bporg-developer' ),
-                'items' => array(
-                    'bp-attachment' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'BP Attachment API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/plugindev/bp_attachment/',
-                    ),
-                    'bp-theme-compat' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'BP Theme Compat API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/plugindev/how-to-enjoy-bp-theme-compat-in-plugins/',
-                    ),
-                    'bp-component' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'BP Component API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/developer/bp_component/',
-                    ),
-                    'bp-user-query' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'BP User Query API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/developer/bp_user_query/',
-                    ),
-                    'bp-member-types' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Member Types API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/developer/member-types/',
-                    ),
-                    'bp-group-types' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Group Types API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/developer/group-types/',
-                    ),
-                    'bp-nav' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'BP Nav API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/developer/navigation-api/',
-                    ),
-                    'bp-group-extension' => array(
-                        'type'  => 'custom',
-                        'title' => __( 'Group Extension API', 'bporg-developer' ),
-                        'url'   => 'https://codex.buddypress.org/developer/group-extension-api/',
-                    ),
-                ),
-            ),
-        ),
-    ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_theme_support( 'starter-content', array(
+               'widgets' => array(
+                       // Place the BP REST API Chapters accordeon.
+                       'bp-rest-api-handbook' => array(
+                               'bp-rest-api-chapters' => array(
+                                       'handbook_pages',
+                                       array(
+                                               'title' => __( 'Chapters', 'bporg-developer' ),
+                                       ),
+                               ),
+                       ),
+                       // Place a link to the codex.
+                       'landing-footer-1' => array(
+                               'more-resources' => array(
+                                       'text',
+                                       array(
+                                               'title'  => __( 'More resources', 'bporg-developer' ),
+                                               'text'   => sprintf( '<a href="https://codex.buddypress.org/">%s</a>', __( 'BuddyPress Codex', 'bporg-developer' ) ),
+                                               'filter' => true,
+                                               'visual' => true,
+                                       ),
+                               ),
+                       ),
+                       // Place a link to the support forums.
+                       'landing-footer-2' => array(
+                               'more-resources' => array(
+                                       'text',
+                                       array(
+                                               'title'  => __( 'Need help?', 'bporg-developer' ),
+                                               'text'   => sprintf( '<a href="https://buddypress.org/support/">%s</a>', __( 'BuddyPress support forums', 'bporg-developer' ) ),
+                                               'filter' => true,
+                                               'visual' => true,
+                                       ),
+                               ),
+                       ),
+               ),
+               // Create initial pages.
+               'posts' => array(
+                       'landing' => array(
+                               'post_title' => __( 'Home', 'bporg-developer' ),
+                               'post_type'  => 'page',
+                               'post_name'  => 'landing',
+                               'template'   => 'page-home-landing.php',
+                       ),
+                       'reference' => array(
+                               'post_title' => __( 'Reference', 'bporg-developer' ),
+                               'post_type'  => 'page',
+                               'post_name'  => 'reference',
+                               'template'   => 'page-under-construction.php',
+                       ),
+                       'bp-rest-api' => array(
+                               'post_title'   => __( 'BP REST API Handbook', 'bporg-developer' ),
+                               'post_type'    => 'bp-rest-api-handbook',
+                               'post_name'    => 'bp-rest-api',
+                               'menu_order'   => 0,
+                               'post_content' => __( 'Let’s start documenting the BP REST API!', 'bporg-developer' ),
+                       ),
+               ),
+               // Default to a static front page and assign the front and posts pages.
+               'options' => array(
+                       'show_on_front' => 'page',
+                       'page_on_front' => '{{landing}}',
+               ),
+               // Set the site title and description.
+               'theme_mods' => array(
+                       'blogname'        => __( 'BuddyPress Developer Resources', 'bporg-developer' ),
+                       'blogdescription' => __( 'Your best buddies ever to help you code.', 'bporg-developer' ),
+               ),
+               // Set up nav menus
+               'nav_menus' => array(
+                       // Assign a menu to the "header-nav-menu" location.
+                       'header-nav-menu' => array(
+                               'name' => __( 'BuddyPress.org nav', 'bporg-developer' ),
+                               'items' => array(
+                                       'about' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'About', 'bporg-developer' ),
+                                               'url'   => 'https://buddypress.org/about/',
+                                       ),
+                                       'plugins' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Plugins', 'bporg-developer' ),
+                                               'url'   => 'https://buddypress.org/plugins/',
+                                       ),
+                                       'themes' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Themes', 'bporg-developer' ),
+                                               'url'   => 'https://buddypress.org/themes/',
+                                       ),
+                                       'documentation' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Documentation', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/',
+                                       ),
+                                       'blog' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Blog', 'bporg-developer' ),
+                                               'url'   => 'https://buddypress.org/blog/',
+                                       ),
+                                       'download' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Download', 'bporg-developer' ),
+                                               'url'   => 'https://buddypress.org/download/',
+                                       ),
+                               ),
+                       ),
+                       // Assign a menu to the "devhub-menu" location.
+                       'devhub-menu' => array(
+                               'name' => __( 'DevHub menu', 'bporg-developer' ),
+                               'items' => array(
+                                       'link_home' => array(
+                                               'title' => __( 'All Developer Resources', 'bporg-developer' ),
+                                       ),
+                               ),
+                       ),
+                       // Assign a menu to the "reference-home-api" location.
+                       'reference-home-api' => array(
+                               'name' => __( 'BuddyPress API', 'bporg-developer' ),
+                               'items' => array(
+                                       'bp-attachment' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'BP Attachment API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/plugindev/bp_attachment/',
+                                       ),
+                                       'bp-theme-compat' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'BP Theme Compat API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/plugindev/how-to-enjoy-bp-theme-compat-in-plugins/',
+                                       ),
+                                       'bp-component' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'BP Component API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/developer/bp_component/',
+                                       ),
+                                       'bp-user-query' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'BP User Query API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/developer/bp_user_query/',
+                                       ),
+                                       'bp-member-types' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Member Types API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/developer/member-types/',
+                                       ),
+                                       'bp-group-types' => array(
+                                               'type' => 'custom',
+                                               'title' => __( 'Group Types API', 'bporg-developer' ),
+                                               'url' => 'https://codex.buddypress.org/developer/group-types/',
+                                       ),
+                                       'bp-nav' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'BP Nav API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/developer/navigation-api/',
+                                       ),
+                                       'bp-group-extension' => array(
+                                               'type'  => 'custom',
+                                               'title' => __( 'Group Extension API', 'bporg-developer' ),
+                                               'url'   => 'https://codex.buddypress.org/developer/group-extension-api/',
+                                       ),
+                               ),
+                       ),
+               ),
+       ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'after_setup_theme', __NAMESPACE__ . '\\bporg_developer_starter_content' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -246,10 +240,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 1.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_version_setting_callback() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    printf(
-        '<input type="text" id="_bp_get_stable_version" name="_bp_get_stable_version" value="%s" class="regular-text ltr" />',
-        esc_attr( get_option( '_bp_get_stable_version', '' ) )
-    );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ printf(
+               '<input type="text" id="_bp_get_stable_version" name="_bp_get_stable_version" value="%s" class="regular-text ltr" />',
+               esc_attr( get_option( '_bp_get_stable_version', '' ) )
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -258,14 +252,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 1.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_version_setting() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    register_setting( 'general', '_bp_get_stable_version', 'esc_attr' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ register_setting( 'general', '_bp_get_stable_version', 'esc_attr' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    add_settings_field(
-        '_bp_get_stable_version',
-        sprintf( '<label for="_bp_get_stable_version">%s</label>', esc_html__( 'BuddyPress latest stable version', 'bporg-developer' ) ),
-        __NAMESPACE__ . '\\bporg_developer_version_setting_callback',
-        'general'
-    );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ add_settings_field(
+               '_bp_get_stable_version',
+               sprintf( '<label for="_bp_get_stable_version">%s</label>', esc_html__( 'BuddyPress latest stable version', 'bporg-developer' ) ),
+               __NAMESPACE__ . '\\bporg_developer_version_setting_callback',
+               'general'
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'admin_init', __NAMESPACE__ . '\\bporg_developer_version_setting' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -277,16 +271,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string The section root URL.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_get_site_section_url() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $parts = explode( '/', $GLOBALS['wp']->request );
-    switch ( $parts[0] ) {
-        case 'reference':
-        case 'plugins':
-        case 'themes':
-        case 'bp-rest-api':
-            return home_url( '/' . $parts[0] . '/' );
-        default:
-            return apply_filters( 'bporg_developer_get_site_section_url', home_url( '/' ), $parts[0] );
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $parts = explode( '/', $GLOBALS[ 'wp' ]->request );
+       switch ( $parts[ 0 ] ) {
+               case 'reference':
+               case 'plugins':
+               case 'themes':
+               case 'bp-rest-api':
+                       return home_url( '/' . $parts[ 0 ] . '/' );
+               default:
+                       return apply_filters( 'bporg_developer_get_site_section_url', home_url( '/' ), $parts[ 0 ] );
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -297,23 +291,23 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string The section title.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_get_site_section_title() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $parts = explode( '/', $GLOBALS['wp']->request );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $parts = explode( '/', $GLOBALS[ 'wp' ]->request );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    switch ( $parts[0] ) {
-        case 'resources':
-        case 'resource':
-            return sprintf( __( 'Developer Resources: %s', 'bporg-developer' ), get_the_title() );
-        case 'reference':
-            return  __( 'Code Reference', 'bporg-developer' );
-        case 'plugins':
-            return __( 'Plugin Handbook', 'bporg-developer' );
-        case 'themes':
-            return __( 'Theme Handbook', 'bporg-developer' );
-        case 'bp-rest-api':
-            return __( 'BP REST API Handbook', 'bporg-developer' );
-        default:
-            return apply_filters( 'bporg_developer_get_site_section_title', __( 'Developer Resources', 'bporg-developer' ) );
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ switch ( $parts[ 0 ] ) {
+               case 'resources':
+               case 'resource':
+                       return sprintf( __( 'Developer Resources: %s', 'bporg-developer' ), get_the_title() );
+               case 'reference':
+                       return __( 'Code Reference', 'bporg-developer' );
+               case 'plugins':
+                       return __( 'Plugin Handbook', 'bporg-developer' );
+               case 'themes':
+                       return __( 'Theme Handbook', 'bporg-developer' );
+               case 'bp-rest-api':
+                       return __( 'BP REST API Handbook', 'bporg-developer' );
+               default:
+                       return apply_filters( 'bporg_developer_get_site_section_title', __( 'Developer Resources', 'bporg-developer' ) );
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -329,32 +323,32 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string The version to use to build the Trac link.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_get_current_version( $prefix = 'tags/', $ignore_unstable = true ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $version    = 'trunk';
-    $bp_version = '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $version = 'trunk';
+       $bp_version = '';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    // BuddyPress might be active.
-    if ( function_exists( 'bp_get_version' ) ) {
-        $bp_version = bp_get_version();
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // BuddyPress might be active.
+       if ( function_exists( 'bp_get_version' ) ) {
+               $bp_version = bp_get_version();
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    // Try to get the option value.
-    $bp_version = get_option( '_bp_get_stable_version', $bp_version );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Try to get the option value.
+       $bp_version = get_option( '_bp_get_stable_version', $bp_version );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    if ( $bp_version ) {
-        if ( false !== strpos( $bp_version, '-' ) ) {
-            if ( ! $ignore_unstable ) {
-                list( $bp_version, $dev_version ) = explode( '-', $bp_version, 2 );
-            } else {
-                $bp_version = '';
-            }
-        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( $bp_version ) {
+               if ( false !== strpos( $bp_version, '-' ) ) {
+                       if ( !$ignore_unstable ) {
+                               list( $bp_version, $dev_version ) = explode( '-', $bp_version, 2 );
+                       } else {
+                               $bp_version = '';
+                       }
+               }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        if ( $bp_version ) {
-            $version = $prefix . $bp_version;
-        }
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         if ( $bp_version ) {
+                       $version = $prefix . $bp_version;
+               }
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    return $version;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return $version;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -366,7 +360,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @param bool $line_number Whether to include the line number anchor.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_source_file_link( $post_id = null, $line_number = true ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    echo esc_url( bporg_developer_get_source_file_link( $post_id, $line_number ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ echo esc_url( bporg_developer_get_source_file_link( $post_id, $line_number ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -381,21 +375,21 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_get_source_file_link( $post_id = null, $line_number = true ) {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $post_id = empty( $post_id ) ? get_the_ID() : $post_id;
-    $url     = '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_id = empty( $post_id ) ? get_the_ID() : $post_id;
+       $url = '';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    // Source file.
-    $source_file = get_source_file( $post_id );
-    if ( ! empty( $source_file ) ) {
-        $bp_version = bporg_developer_get_current_version( 'tags/' );
-        $url        = 'https://buddypress.trac.wordpress.org/browser/' . $bp_version . '/src/' . $source_file;
-        // Line number.
-        if ( $line_number = get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ) {
-            $url .= "#L{$line_number}";
-        }
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Source file.
+       $source_file = get_source_file( $post_id );
+       if ( !empty( $source_file ) ) {
+               $bp_version = bporg_developer_get_current_version( 'tags/' );
+               $url = 'https://buddypress.trac.wordpress.org/browser/' . $bp_version . '/src/' . $source_file;
+               // Line number.
+               if ( $line_number = get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ) {
+                       $url .= "#L{$line_number}";
+               }
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    return $url;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return $url;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -413,28 +407,30 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return object|WP_Error
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bporg_developer_get_current_version_term( $ignore_minor = true ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $current_version = bporg_developer_get_current_version( '' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $current_version = bporg_developer_get_current_version( '' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    if ( $ignore_minor ) {
-        $version_parts = explode( '.', $current_version, 3 );
-        if ( count( $version_parts ) == 2 ) {
-            $version_parts[] = '0';
-        } else {
-            $version_parts[2] = '0';
-        }
-        $current_version = implode( '-', $version_parts );
-    }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( $ignore_minor ) {
+               $version_parts = explode( '.', $current_version, 3 );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    $version = get_terms( 'wp-parser-since', array(
-        'number' => '1',
-        'order'  => 'DESC',
-        'slug'   => $current_version,
-    ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         if ( count( $version_parts ) === 2 ) {
+                       $version_parts[] = '0';
+               } else {
+                       $version_parts[ 2 ] = '0';
+               }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    return is_wp_error( $version ) ? $version : reset( $version );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $current_version = implode( '-', $version_parts );
+       }
+
+       $version = get_terms( 'wp-parser-since', array(
+               'number' => '1',
+               'order'  => 'DESC',
+               'slug'   => $current_version,
+       ) );
+
+       return is_wp_error( $version ) ? $version : reset( $version );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-if ( ! function_exists( 'wp_body_open' ) ) :
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+if ( !function_exists( 'wp_body_open' ) ) :
</ins><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Fire the wp_body_open action.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span></span></pre></div>
<a id="sitestrunkbuddypressorgpublic_htmlwpcontentthemesbuddypressorgfunctionsphp"></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/functions.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/functions.php     2019-09-10 04:06:07 UTC (rev 9132)
+++ sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/functions.php       2019-09-10 04:51:17 UTC (rev 9133)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,12 +1 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
-/**
- * Redirect away from the login page if you're already logged in
- */
-function bb_theme_login_redirect() {
-       if ( is_user_logged_in() && is_page( 'login' ) ) {
-               wp_safe_redirect( 'https://buddypress.org/support/' );
-               exit();
-       }
-}
-add_action( 'bbp_template_redirect', 'bb_theme_login_redirect', 11 );
</del></span></pre>
</div>
</div>

</body>
</html>