<!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][9572] trunk/src: Notifications: Introduce notification metadata table.</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 { 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/9572">9572</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/9572","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>2015-03-01 17:22:59 +0000 (Sun, 01 Mar 2015)</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'>Notifications: Introduce notification metadata table.
* Bump DB version
* Introduce DB upgrade function & routine for 2.3.0
* Add metadata table to Notifications installation function
* Add metadata CRUD functions to Notifications component
See <a href="http://buddypress.trac.wordpress.org/ticket/6257">#6257</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpcoreadminbpcoreadminschemaphp">trunk/src/bp-core/admin/bp-core-admin-schema.php</a></li>
<li><a href="#trunksrcbpcorebpcoreupdatephp">trunk/src/bp-core/bp-core-update.php</a></li>
<li><a href="#trunksrcbploaderphp">trunk/src/bp-loader.php</a></li>
<li><a href="#trunksrcbpnotificationsbpnotificationscachephp">trunk/src/bp-notifications/bp-notifications-cache.php</a></li>
<li><a href="#trunksrcbpnotificationsbpnotificationsfunctionsphp">trunk/src/bp-notifications/bp-notifications-functions.php</a></li>
<li><a href="#trunksrcbpnotificationsbpnotificationsloaderphp">trunk/src/bp-notifications/bp-notifications-loader.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpcoreadminbpcoreadminschemaphp"></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/admin/bp-core-admin-schema.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-core/admin/bp-core-admin-schema.php 2015-03-01 13:36:46 UTC (rev 9571)
+++ trunk/src/bp-core/admin/bp-core-admin-schema.php 2015-03-01 17:22:59 UTC (rev 9572)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,6 +114,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> KEY useritem (user_id,is_new)
</span><span class="cx" style="display: block; padding: 0 10px"> ) {$charset_collate};";
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $sql[] = "CREATE TABLE {$bp_prefix}bp_notifications_meta (
+ id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ notification_id bigint(20) NOT NULL,
+ meta_key varchar(255) DEFAULT NULL,
+ meta_value longtext DEFAULT NULL,
+ KEY notification_id (notification_id),
+ KEY meta_key (meta_key)
+ ) {$charset_collate};";
+
</ins><span class="cx" style="display: block; padding: 0 10px"> dbDelta( $sql );
</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="trunksrcbpcorebpcoreupdatephp"></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/bp-core-update.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-core/bp-core-update.php 2015-03-01 13:36:46 UTC (rev 9571)
+++ trunk/src/bp-core/bp-core-update.php 2015-03-01 17:22:59 UTC (rev 9572)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -211,18 +211,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Run the schema install to update tables
</span><span class="cx" style="display: block; padding: 0 10px"> bp_core_install();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // 1.5
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 1.5.0
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $raw_db_version < 1801 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_1_5();
</span><span class="cx" style="display: block; padding: 0 10px"> bp_core_add_page_mappings( $default_components, 'delete' );
</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">- // 1.6
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 1.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $raw_db_version < 6067 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_1_6();
</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">- // 1.9
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 1.9.0
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $raw_db_version < 7553 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_1_9();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,7 +232,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_1_9_2();
</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">- // 2.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 2.0.0
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $raw_db_version < 7892 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_2_0();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -242,10 +242,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_2_0_1();
</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">- // 2.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // 2.2.0
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $raw_db_version < 9181 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> bp_update_to_2_2();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ // 2.3.0
+ if ( $raw_db_version < 9572 ) {
+ bp_update_to_2_3();
+ }
</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"> /** All done! *************************************************************/
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -418,6 +423,19 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * 2.3.0 update routine.
+ *
+ * - Add notifications meta table
+ *
+ * @since BuddyPress (2.3.0)
+ */
+function bp_update_to_2_3() {
+ if ( bp_is_active( 'notifications' ) ) {
+ bp_core_install_notifications();
+ }
+}
+
+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Updates the component field for new_members type.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since BuddyPress (2.2.0)
</span></span></pre></div>
<a id="trunksrcbploaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-loader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-loader.php 2015-03-01 13:36:46 UTC (rev 9571)
+++ trunk/src/bp-loader.php 2015-03-01 17:22:59 UTC (rev 9572)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -303,7 +303,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /** Versions **********************************************************/
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->version = '2.3-alpha';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->db_version = 9181;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->db_version = 9572;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** Loading ***********************************************************/
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbpnotificationsbpnotificationscachephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-notifications/bp-notifications-cache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-notifications/bp-notifications-cache.php 2015-03-01 13:36:46 UTC (rev 9571)
+++ trunk/src/bp-notifications/bp-notifications-cache.php 2015-03-01 17:22:59 UTC (rev 9572)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,6 +7,30 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Slurp up metadata for a set of notifications.
+ *
+ * It grabs all notification meta associated with all of the notifications
+ * passed in $notification_ids and adds it to WP cache. This improves efficiency
+ * when using notification meta within a loop context.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param int|str|array $notification_ids Accepts a single notification_id, or a
+ * comma-separated list or array of
+ * notification ids.
+ */
+function bp_notifications_update_meta_cache( $notification_ids = false ) {
+ bp_update_meta_cache( array(
+ 'object_ids' => $notification_ids,
+ 'object_type' => buddypress()->notifications->id,
+ 'cache_group' => 'notification_meta',
+ 'object_column' => 'notification_id',
+ 'meta_table' => buddypress()->notifications->table_name_meta,
+ 'cache_key_prefix' => 'bp_notifications_meta'
+ ) );
+}
+
+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Invalidate 'all_for_user_' cache when saving.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since BuddyPress (2.0.0)
</span></span></pre></div>
<a id="trunksrcbpnotificationsbpnotificationsfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-notifications/bp-notifications-functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-notifications/bp-notifications-functions.php 2015-03-01 13:36:46 UTC (rev 9571)
+++ trunk/src/bp-notifications/bp-notifications-functions.php 2015-03-01 17:22:59 UTC (rev 9572)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -611,3 +611,134 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> return apply_filters( 'bp_notifications_get_registered_components', $component_names, $active_components );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/** Meta **********************************************************************/
+
+/**
+ * Delete a meta entry from the DB for a notification item.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @global object $wpdb WordPress database access object.
+ *
+ * @param int $notification_id ID of the notification item whose metadata is being deleted.
+ * @param string $meta_key Optional. The key of the metadata being deleted. If
+ * omitted, all metadata associated with the notification
+ * item will be deleted.
+ * @param string $meta_value Optional. If present, the metadata will only be
+ * deleted if the meta_value matches this parameter.
+ * @param bool $delete_all Optional. If true, delete matching metadata entries
+ * for all objects, ignoring the specified object_id. Otherwise,
+ * only delete matching metadata entries for the specified
+ * notification item. Default: false.
+ *
+ * @return bool True on success, false on failure.
+ */
+function bp_notifications_delete_meta( $notification_id, $meta_key = '', $meta_value = '', $delete_all = false ) {
+
+ // Legacy - if no meta_key is passed, delete all for the item
+ if ( empty( $meta_key ) ) {
+ $all_meta = bp_notifications_get_meta( $notification_id );
+ $keys = ! empty( $all_meta )
+ ? array_keys( $all_meta )
+ : array();
+
+ // With no meta_key, ignore $delete_all
+ $delete_all = false;
+ } else {
+ $keys = array( $meta_key );
+ }
+
+ $retval = true;
+
+ add_filter( 'query', 'bp_filter_metaid_column_name' );
+ foreach ( $keys as $key ) {
+ $retval = delete_metadata( 'notifications', $notification_id, $key, $meta_value, $delete_all );
+ }
+ remove_filter( 'query', 'bp_filter_metaid_column_name' );
+
+ return $retval;
+}
+
+/**
+ * Get metadata for a given notification item.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @uses apply_filters() To call the 'bp_notifications_get_meta' hook.
+ *
+ * @param int $notification_id ID of the notification item whose metadata is being requested.
+ * @param string $meta_key Optional. If present, only the metadata matching
+ * that meta key will be returned. Otherwise, all metadata for the
+ * notification item will be fetched.
+ * @param bool $single Optional. If true, return only the first value of the
+ * specified meta_key. This parameter has no effect if meta_key is not
+ * specified. Default: true.
+ *
+ * @return mixed The meta value(s) being requested.
+ */
+function bp_notifications_get_meta( $notification_id = 0, $meta_key = '', $single = true ) {
+ add_filter( 'query', 'bp_filter_metaid_column_name' );
+ $retval = get_metadata( 'notifications', $notification_id, $meta_key, $single );
+ remove_filter( 'query', 'bp_filter_metaid_column_name' );
+
+ /**
+ * Filters the metadata for a specified notification item.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param mixed $retval The meta values for the notification item.
+ * @param int $notification_id ID of the notification item.
+ * @param string $meta_key Meta key for the value being requested.
+ * @param bool $single Whether to return one matched meta key row or all.
+ */
+ return apply_filters( 'bp_notifications_get_meta', $retval, $notification_id, $meta_key, $single );
+}
+
+/**
+ * Update a piece of notification meta.
+ *
+ * @since BuddyPress (1.2.0)
+ *
+ * @param int $notification_id ID of the notification item whose metadata is being
+ * updated.
+ * @param string $meta_key Key of the metadata being updated.
+ * @param mixed $meta_value Value to be set.
+ * @param mixed $prev_value Optional. If specified, only update existing
+ * metadata entries with the specified value.
+ * Otherwise, update all entries.
+ *
+ * @return bool|int Returns false on failure. On successful
+ * update of existing metadata, returns true. On
+ * successful creation of new metadata, returns
+ * the integer ID of the new metadata row.
+ */
+function bp_notifications_update_meta( $notification_id, $meta_key, $meta_value, $prev_value = '' ) {
+ add_filter( 'query', 'bp_filter_metaid_column_name' );
+ $retval = update_metadata( 'notifications', $notification_id, $meta_key, $meta_value, $prev_value );
+ remove_filter( 'query', 'bp_filter_metaid_column_name' );
+
+ return $retval;
+}
+
+/**
+ * Add a piece of notification metadata.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param int $notification_id ID of the notification item.
+ * @param string $meta_key Metadata key.
+ * @param mixed $meta_value Metadata value.
+ * @param bool $unique Optional. Whether to enforce a single metadata value
+ * for the given key. If true, and the object already has a value for
+ * the key, no change will be made. Default: false.
+ *
+ * @return int|bool The meta ID on successful update, false on failure.
+ */
+function bp_notifications_add_meta( $notification_id, $meta_key, $meta_value, $unique = false ) {
+ add_filter( 'query', 'bp_filter_metaid_column_name' );
+ $retval = add_metadata( 'notifications', $notification_id, $meta_key, $meta_value, $unique );
+ remove_filter( 'query', 'bp_filter_metaid_column_name' );
+
+ return $retval;
+}
</ins></span></pre></div>
<a id="trunksrcbpnotificationsbpnotificationsloaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-notifications/bp-notifications-loader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-notifications/bp-notifications-loader.php 2015-03-01 13:36:46 UTC (rev 9571)
+++ trunk/src/bp-notifications/bp-notifications-loader.php 2015-03-01 17:22:59 UTC (rev 9572)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,7 +247,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Global groups
</span><span class="cx" style="display: block; padding: 0 10px"> wp_cache_add_global_groups( array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'bp_notifications'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'bp_notifications',
+ 'notification_meta'
</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"> parent::setup_cache_groups();
</span></span></pre>
</div>
</div>
</body>
</html>