summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-05-22 01:01:36 -0400
committerYury German <blueknight@gentoo.org>2019-05-22 01:01:36 -0400
commit0914c92da22824025992c368c745546e41fbeb84 (patch)
tree965f6adf3b725e56d559fe4a93eff02281499dcc /plugins/jetpack/3rd-party/debug-bar.php
parentDeleting plugins for update (diff)
downloadblogs-gentoo-0914c92da22824025992c368c745546e41fbeb84.tar.gz
blogs-gentoo-0914c92da22824025992c368c745546e41fbeb84.tar.bz2
blogs-gentoo-0914c92da22824025992c368c745546e41fbeb84.zip
Adding Plugins
Updating the following akismet.4.1.2, google-authenticator.0.52, jetpack.7.3.1 Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'plugins/jetpack/3rd-party/debug-bar.php')
-rw-r--r--plugins/jetpack/3rd-party/debug-bar.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/jetpack/3rd-party/debug-bar.php b/plugins/jetpack/3rd-party/debug-bar.php
new file mode 100644
index 00000000..a6449903
--- /dev/null
+++ b/plugins/jetpack/3rd-party/debug-bar.php
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * Checks if the search module is active, and if so, will initialize the singleton instance
+ * of Jetpack_Search_Debug_Bar and add it to the array of debug bar panels.
+ *
+ * @param array $panels The array of debug bar panels.
+ * @return array $panel The array of debug bar panels with our added panel.
+ */
+function init_jetpack_search_debug_bar( $panels ) {
+ if ( ! Jetpack::is_module_active( 'search' ) ) {
+ return $panels;
+ }
+
+ require_once dirname( __FILE__ ) . '/debug-bar/class.jetpack-search-debug-bar.php';
+ $panels[] = Jetpack_Search_Debug_Bar::instance();
+ return $panels;
+}
+add_filter( 'debug_bar_panels', 'init_jetpack_search_debug_bar' );