<!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>[BuddyPress][13504] trunk/src: Core, Messages & Templates: remove never used inited vars in functions</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://buddypress.trac.wordpress.org/changeset/13504">13504</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/13504","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>imath</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-06-19 18:09:44 +0000 (Mon, 19 Jun 2023)</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'>Core, Messages & Templates: remove never used inited vars in functions

Props upadalavipul

Fixes <a href="http://buddypress.trac.wordpress.org/ticket/8892">#8892</a>
Closes https://github.com/buddypress/buddypress/pull/118</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpcoreclassesclassbpblockphp">trunk/src/bp-core/classes/class-bp-block.php</a></li>
<li><a href="#trunksrcbpcoreclassesclassbpcorebpoptionsnavbackcompatphp">trunk/src/bp-core/classes/class-bp-core-bp-options-nav-backcompat.php</a></li>
<li><a href="#trunksrcbpmessagesbpmessagesnotificationsphp">trunk/src/bp-messages/bp-messages-notifications.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesactivitytemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesblogstemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludescustomizercontrolsphp">trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesgroupsajaxphp">trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesgroupsfunctionsphp">trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesgroupstemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesmemberstemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludestemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/template-tags.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpcoreclassesclassbpblockphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-core/classes/class-bp-block.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-core/classes/class-bp-block.php      2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-core/classes/class-bp-block.php        2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -284,7 +284,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        $translation_domain = apply_filters( 'bp_block_translation_domain', $textdomain, $this->block->editor_script, $name );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        // Try to load the translation.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        $translated = wp_set_script_translations( $this->block->editor_script, $translation_domain, $translation_dir );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 wp_set_script_translations( $this->block->editor_script, $translation_domain, $translation_dir );
</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></pre></div>
<a id="trunksrcbpcoreclassesclassbpcorebpoptionsnavbackcompatphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-core/classes/class-bp-core-bp-options-nav-backcompat.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-core/classes/class-bp-core-bp-options-nav-backcompat.php     2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-core/classes/class-bp-core-bp-options-nav-backcompat.php       2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -124,11 +124,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $nav = array();
</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 ( empty( $primary_nav ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 if ( empty( $secondary_nav ) ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 return $nav;
</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">-                        foreach ( $primary_nav as $item ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 foreach ( $secondary_nav as $item ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $nav[ $item->slug ] = (array) $item;
</span><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="trunksrcbpmessagesbpmessagesnotificationsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-messages/bp-messages-notifications.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-messages/bp-messages-notifications.php       2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-messages/bp-messages-notifications.php 2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,7 +27,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $total_items = (int) $total_items;
</span><span class="cx" style="display: block; padding: 0 10px">        $text        = '';
</span><span class="cx" style="display: block; padding: 0 10px">        $link        = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_messages_slug(), 'inbox' ) ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $title       = __( 'Inbox', 'buddypress' );
</del><span class="cx" style="display: block; padding: 0 10px">         $amount      = 'single';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( 'new_message' === $action ) {
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesactivitytemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php     2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php       2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * Activity Template tags
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 3.0.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 10.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 12.0.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"> // Exit if accessed directly.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -552,14 +552,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $data_element = 'href';
</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">-                        $spam_link = bp_rewrites_get_url(
-                               array(
-                                       'component_id'                 => 'activity',
-                                       'single_item_action'           => 'spam',
-                                       'single_item_action_variables' => array( bp_get_activity_id() ),
-                               )
-                       );
-
</del><span class="cx" style="display: block; padding: 0 10px">                         $buttons['activity_spam']['button_attr'][ $data_element ] = wp_nonce_url(
</span><span class="cx" style="display: block; padding: 0 10px">                                bp_rewrites_get_url(
</span><span class="cx" style="display: block; padding: 0 10px">                                        array(
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesblogstemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php        2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php  2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * Blogs Template tags
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 3.0.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 6.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 12.0.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"> // Exit if accessed directly.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -183,23 +183,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $parent_element = false;
</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">-                /*
-                * If we have a arg value for $button_element passed through
-                * use it to default all the $buttons['button_element'] values
-                * otherwise default to 'a' (anchor)
-                * Or override & hardcode the 'element' string on $buttons array.
-                *
-                * Icons sets a class for icon display if not using the button element
-                */
-               $icons = '';
</del><span class="cx" style="display: block; padding: 0 10px">                 if ( ! empty( $args['button_element'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $button_element = $args['button_element'] ;
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        $button_element = 'a';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $icons = ' icons';
</del><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 we pass through parent classes add them to $button array
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // If we pass through parent classes add them to `$button` array.
</ins><span class="cx" style="display: block; padding: 0 10px">                 $parent_class = '';
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! empty( $args['parent_attr']['class'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $parent_class = $args['parent_attr']['class'];
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludescustomizercontrolsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php        2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php  2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * Customizer controls
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 3.0.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 3.1.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 12.0.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"> // Exit if accessed directly.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function render_content() {
</span><span class="cx" style="display: block; padding: 0 10px">                $id       = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $class    = 'customize-control customize-control-' . $this->type;
</del><span class="cx" style="display: block; padding: 0 10px">                 $setting  = "bp_nouveau_appearance[{$this->type}_nav_order]";
</span><span class="cx" style="display: block; padding: 0 10px">                $item_nav = array();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,8 +60,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                // It's a user!
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        $item_nav = bp_nouveau_member_customizer_nav();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
-                       $guide = __( 'Drag each possible member navigation items that are listed below into the order you prefer.', 'buddypress' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $guide    = __( 'Drag each possible member navigation items that are listed below into the order you prefer.', 'buddypress' );
</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">@@ -75,11 +73,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                <?php if ( ! empty( $item_nav ) ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <ul id="<?php echo esc_attr( $id ); ?>" class="ui-sortable" style="margin-top: 0px; height: 500px;" data-bp-type="<?php echo esc_attr( $this->type ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                <?php
-                               $i = 0;
-                               foreach ( $item_nav as $item ) :
-                                       $i += 1;
-                               ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         <?php foreach ( $item_nav as $item ) : ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                                         <li data-bp-nav="<?php echo esc_attr( $item->slug ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px">                                                <div class="menu-item-bar">
</span><span class="cx" style="display: block; padding: 0 10px">                                                        <div class="menu-item-handle ui-sortable-handle">
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesgroupsajaxphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php        2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php  2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,7 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * Groups Ajax functions
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 3.0.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @version 6.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @version 12.0.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"> // Exit if accessed directly.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -377,8 +377,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 3.0.0
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_nouveau_ajax_send_group_invites() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $bp = buddypress();
-
</del><span class="cx" style="display: block; padding: 0 10px">         $response = array(
</span><span class="cx" style="display: block; padding: 0 10px">                'feedback' => __( 'Invites could not be sent. Please try again.', 'buddypress' ),
</span><span class="cx" style="display: block; padding: 0 10px">                'type'     => 'error',
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesgroupsfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php   2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php     2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -521,7 +521,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_nouveau_restrict_rest_group_invite_to_friends( $retval, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px">        if ( true === $retval && bp_is_active( 'friends' ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $group_id   = $request->get_param( 'group_id' );
</del><span class="cx" style="display: block; padding: 0 10px">                 $user_id    = $request->get_param( 'user_id' );
</span><span class="cx" style="display: block; padding: 0 10px">                $inviter_id = $request->get_param( 'inviter_id' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesgroupstemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php       2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php 2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -688,20 +688,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $parent_element = false;
</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">-                /*
-                * If we have a arg value for $button_element passed through
-                * use it to default all the $buttons['button_element'] values
-                * otherwise default to 'a' (anchor) o override & hardcode the
-                * 'element' string on $buttons array.
-                *
-                * Icons sets a class for icon display if not using the button element
-                */
-               $icons = '';
</del><span class="cx" style="display: block; padding: 0 10px">                 if ( ! empty( $args['button_element'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $button_element = $args['button_element'] ;
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        $button_element = 'a';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $icons = ' icons';
</del><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">                // If we pass through parent classes add them to $button array
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesmemberstemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php      2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php        2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,20 +247,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $parent_element = $args['parent_element'];
</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">-                /*
-                * If we have a arg value for $button_element passed through
-                * use it to default all the $buttons['button_element'] values
-                * otherwise default to 'a' (anchor)
-                * Or override & hardcode the 'element' string on $buttons array.
-                *
-                * Icons sets a class for icon display if not using the button element
-                */
-               $icons = '';
</del><span class="cx" style="display: block; padding: 0 10px">                 if ( ! empty( $args['button_element'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $button_element = $args['button_element'] ;
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        $button_element = 'button';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $icons = ' icons';
</del><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">                // If we pass through parent classes add them to $button array
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludestemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-templates/bp-nouveau/includes/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/template-tags.php      2023-06-18 04:11:04 UTC (rev 13503)
+++ trunk/src/bp-templates/bp-nouveau/includes/template-tags.php        2023-06-19 18:09:44 UTC (rev 13504)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -474,11 +474,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        break;
</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">-        $count_class = sprintf( '%1$s-%2$s-count-%3$s', $pagination_type, $screen, $position );
-       $links_class = sprintf( '%1$s-%2$s-links-%3$s', $pagination_type, $screen, $position );
-       ?>
-
-       <?php
</del><span class="cx" style="display: block; padding: 0 10px">         if ( 'bottom' === $position && isset( $bottom_hook ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                /**
</span><span class="cx" style="display: block; padding: 0 10px">                 * Fires after the component directory list.
</span></span></pre>
</div>
</div>

</body>
</html>