HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/mangomitra/public_html/wp-content/plugins/buddypress/bp-blogs/bp-blogs-widgets.php
<?php
/**
 * BuddyPress Blogs Widgets.
 *
 * @package BuddyPress
 * @subpackage BlogsWidgets
 * @since 1.0.0
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/**
 * Registers the Recent Posts Legacy Widget.
 *
 * @since 10.0.0
 */
function bp_blogs_register_recent_posts_widget() {
	register_widget( 'BP_Blogs_Recent_Posts_Widget' );
}

/**
 * Register the widgets for the Blogs component.
 */
function bp_blogs_register_widgets() {
	global $wpdb;

	if ( bp_is_active( 'activity' ) && bp_is_root_blog( $wpdb->blogid ) ) {
		add_action( 'widgets_init', 'bp_blogs_register_recent_posts_widget' );
	}
}
add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' );