<!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][12107] trunk/src/bp-templates/bp-nouveau: Templates, Nouveau: use `bp_parse_args` instead of `wp_parse_args`.</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/12107">12107</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/12107","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>djpaul</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-05-21 01:14:05 +0000 (Mon, 21 May 2018)</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'>Templates, Nouveau: use `bp_parse_args` instead of `wp_parse_args`.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbptemplatesbpnouveaubuddypressfunctionsphp">trunk/src/bp-templates/bp-nouveau/buddypress-functions.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesactivitytemplatetagsphp">trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesactivitywidgetsphp">trunk/src/bp-templates/bp-nouveau/includes/activity/widgets.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesclassesphp">trunk/src/bp-templates/bp-nouveau/includes/classes.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesfunctionsphp">trunk/src/bp-templates/bp-nouveau/includes/functions.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesgroupsajaxphp">trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesgroupsclassesphp">trunk/src/bp-templates/bp-nouveau/includes/groups/classes.php</a></li>
<li><a href="#trunksrcbptemplatesbpnouveauincludesnotificationsfunctionsphp">trunk/src/bp-templates/bp-nouveau/includes/notifications/functions.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="trunksrcbptemplatesbpnouveaubuddypressfunctionsphp"></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/buddypress-functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/buddypress-functions.php        2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/buddypress-functions.php  2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -266,11 +266,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        $file = $asset['uri'];
</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">-                                $data = wp_parse_args( $style, array(
-                                       'dependencies' => array(),
-                                       'version'      => $this->version,
-                                       'type'         => 'screen',
-                               ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $data = bp_parse_args(
+                                       $style,
+                                       array(
+                                               'dependencies' => array(),
+                                               'version'      => $this->version,
+                                               'type'         => 'screen',
+                                       ),
+                                       'nouveau_enqueue_styles'
+                               );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                wp_enqueue_style( $handle, $file, $data['dependencies'], $data['version'], $data['type'] );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -345,11 +349,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $file = $asset['uri'];
</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">-                        $data = wp_parse_args( $script, array(
-                               'dependencies' => array(),
-                               'version'      => $this->version,
-                               'footer'       => false,
-                       ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $data = bp_parse_args(
+                               $script,
+                               array(
+                                       'dependencies' => array(),
+                                       'version'      => $this->version,
+                                       'footer'       => false,
+                               ),
+                               'nouveau_register_scripts'
+                       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_register_script( $handle, $file, $data['dependencies'], $data['version'], $data['footer'] );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -627,7 +635,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( false === strpos( $uri['path'], 'customize.php' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return $path;
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $vars = wp_parse_args( $uri['query'], array() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $vars = bp_parse_args(
+                               $uri['query'],
+                               array(),
+                               'customizer_set_uri'
+                       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( ! empty( $vars['url'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $path = str_replace( get_site_url(), '', urldecode( $vars['url'] ) );
</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     2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php       2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -435,16 +435,20 @@
</span><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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $delete_args = wp_parse_args( $delete_args, array(
-                               'link_text'   => '',
-                               'button_attr' => array(
-                                       'link_id'         => '',
-                                       'link_href'       => '',
-                                       'link_class'      => '',
-                                       'link_rel'        => 'nofollow',
-                                       'data_bp_tooltip' => '',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $delete_args = bp_parse_args(
+                               $delete_args,
+                               array(
+                                       'link_text'   => '',
+                                       'button_attr' => array(
+                                               'link_id'         => '',
+                                               'link_href'       => '',
+                                               'link_class'      => '',
+                                               'link_rel'        => 'nofollow',
+                                               'data_bp_tooltip' => '',
+                                       ),
</ins><span class="cx" style="display: block; padding: 0 10px">                                 ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'nouveau_get_activity_entry_buttons'
+                       );
</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">                if ( empty( $delete_args['link_href'] ) ) {
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesactivitywidgetsphp"></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/widgets.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/widgets.php   2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/activity/widgets.php     2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,11 +165,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @return string HTML output.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function form( $instance ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $instance = wp_parse_args( (array) $instance, array(
-                       'title' => __( 'Latest updates', 'buddypress' ),
-                       'max'   => 5,
-                       'type'  => '',
-               ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $instance = bp_parse_args(
+                       (array) $instance,
+                       array(
+                               'title' => __( 'Latest updates', 'buddypress' ),
+                               'max'   => 5,
+                               'type'  => '',
+                       ),
+                       'widget_latest_activities'
+               );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $title = esc_attr( $instance['title'] );
</span><span class="cx" style="display: block; padding: 0 10px">                $max   = (int) $instance['max'];
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesclassesphp"></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/classes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-templates/bp-nouveau/includes/classes.php    2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/classes.php      2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,18 +44,22 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function __construct( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $args as $arg ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $r = wp_parse_args( (array) $arg, array(
-                               'id'                => '',
-                               'position'          => 99,
-                               'component'         => '',
-                               'must_be_logged_in' => true,
-                               'block_self'        => false,
-                               'parent_element'    => false,
-                               'parent_attr'       => array(),
-                               'button_element'    => 'a',
-                               'button_attr'       => array(),
-                               'link_text'         => '',
-                       ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $r = bp_parse_args(
+                               (array) $arg,
+                               array(
+                                       'id'                => '',
+                                       'position'          => 99,
+                                       'component'         => '',
+                                       'must_be_logged_in' => true,
+                                       'block_self'        => false,
+                                       'parent_element'    => false,
+                                       'parent_attr'       => array(),
+                                       'button_element'    => 'a',
+                                       'button_attr'       => array(),
+                                       'link_text'         => '',
+                               ),
+                               'buttons_group_constructor'
+                       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        // Just don't set the button if a param is missing
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( empty( $r['id'] ) || empty( $r['component'] ) || empty( $r['link_text'] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -163,7 +167,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function update( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $args as $id => $params ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( isset( $this->group[ $id ] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $this->group[ $id ] = wp_parse_args( $params, $this->group[ $id ] );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $this->group[ $id ] = bp_parse_args(
+                                       $params,
+                                       $this->group[ $id ],
+                                       'buttons_group_update'
+                               );
</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">@@ -228,9 +236,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 *     @param bool $bp_nouveau_widget_title Whether or not to assign a title for the widget.
</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">-                $item_nav_args = wp_parse_args( $instance, apply_filters( 'bp_nouveau_object_nav_widget_args', array(
-                       'bp_nouveau_widget_title' => true,
-               ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $item_nav_args = bp_parse_args(
+                       $instance,
+                       apply_filters(
+                               'bp_nouveau_object_nav_widget_args',
+                               array( 'bp_nouveau_widget_title' => true )
+                       ),
+                       'widget_object_nav'
+               );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $title = '';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -303,7 +316,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'bp_nouveau_widget_title' => true,
</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">-                $instance = wp_parse_args( (array) $instance, $defaults );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $instance = bp_parse_args(
+                       (array) $instance,
+                       $defaults,
+                       'widget_object_nav_form'
+               );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $bp_nouveau_widget_title = (bool) $instance['bp_nouveau_widget_title'];
</span><span class="cx" style="display: block; padding: 0 10px">                ?>
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesfunctionsphp"></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/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/functions.php  2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/functions.php    2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,7 +44,11 @@
</span><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 ( ! empty( $_POST ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_query = wp_parse_args( $_POST, $post_query );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_query = bp_parse_args(
+                       $_POST,
+                       $post_query,
+                       'nouveau_ajax_querystring'
+               );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Make sure to transport the scope, filter etc.. in HeartBeat Requests
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! empty( $post_query['data']['bp_heartbeat'] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,7 +56,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        // Remove heartbeat specific vars
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_query = array_diff_key(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                wp_parse_args( $bp_heartbeat, $post_query ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         bp_parse_args(
+                                       $bp_heartbeat,
+                                       $post_query,
+                                       'nouveau_ajax_querystring_heartbeat'
+                               ),
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'data'      => false,
</span><span class="cx" style="display: block; padding: 0 10px">                                        'interval'  => false,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -242,12 +250,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $generic_class = '';
</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">-        $r = wp_parse_args( $args, array(
-               'container'         => 'div',
-               'container_id'      => '',
-               'container_classes' => array( $generic_class, $current_component_class   ),
-               'output'            => '',
-       ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $r = bp_parse_args(
+               $args,
+               array(
+                       'container'         => 'div',
+                       'container_id'      => '',
+                       'container_classes' => array( $generic_class, $current_component_class   ),
+                       'output'            => '',
+               ),
+               'nouveau_wrapper'
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $valid_containers = array(
</span><span class="cx" style="display: block; padding: 0 10px">                'div'  => true,
</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        2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php  2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -277,9 +277,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_send_json_error( $response );
</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">-        $request = wp_parse_args( $_POST, array(
-               'scope' => 'members',
-       ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $request = bp_parse_args(
+               $_POST,
+               array(
+                       'scope' => 'members',
+               ),
+               'nouveau_ajax_get_users_to_invite'
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $bp->groups->invites_scope = 'members';
</span><span class="cx" style="display: block; padding: 0 10px">        $message = __( 'Select members to invite by clicking the + button. Once you\'ve made your selection, use the "Send Invites" navigation item to continue.', 'buddypress' );
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesgroupsclassesphp"></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/classes.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/classes.php     2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/groups/classes.php       2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,10 +39,14 @@
</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">        public function build_exclude_args() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->query_vars = wp_parse_args( $this->query_vars, array(
-                       'group_id'     => 0,
-                       'is_confirmed' => true,
-               ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->query_vars = bp_parse_args(
+                       $this->query_vars,
+                       array(
+                               'group_id'     => 0,
+                               'is_confirmed' => true,
+                       ),
+                       'nouveau_group_invite_query_exlude_args'
+               );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $group_member_ids = $this->get_group_member_ids();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunksrcbptemplatesbpnouveauincludesnotificationsfunctionsphp"></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/notifications/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/notifications/functions.php    2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/notifications/functions.php      2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -84,11 +84,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_nouveau_notifications_register_filter( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $bp_nouveau = bp_nouveau();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $r = wp_parse_args( $args, array(
-               'id'       => '',
-               'label'    => '',
-               'position' => 99,
-       ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $r = bp_parse_args(
+               $args,
+               array(
+                       'id'       => '',
+                       'label'    => '',
+                       'position' => 99,
+               ),
+               'nouveau_notifications_register_filter'
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $r['id'] ) || empty( $r['label'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                return false;
</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      2018-05-21 01:03:05 UTC (rev 12106)
+++ trunk/src/bp-templates/bp-nouveau/includes/template-tags.php        2018-05-21 01:14:05 UTC (rev 12107)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -708,12 +708,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_nouveau_has_nav( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $bp_nouveau = bp_nouveau();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $n = wp_parse_args( $args, array(
-               'type'                    => 'primary',
-               'object'                  => '',
-               'user_has_access'         => true,
-               'show_for_displayed_user' => true,
-       ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $n = bp_parse_args(
+               $args,
+               array(
+                       'type'                    => 'primary',
+                       'object'                  => '',
+                       'user_has_access'         => true,
+                       'show_for_displayed_user' => true,
+               ),
+               'nouveau_has_nav'
+       );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $n['type'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                return false;
</span></span></pre>
</div>
</div>

</body>
</html>