<!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][9756] trunk/src: Avatar UI: Add BuddyPress Attachments specific 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 { 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/9756">9756</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/9756","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>2015-04-16 22:25:09 +0000 (Thu, 16 Apr 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'>Avatar UI: Add BuddyPress Attachments specific functions.
- `bp_attachments_enqueue_scripts()` requires one parameter the name of the class you are using to extend `BP_Attachment`, eg: `BP_Attachment_Avatar`. It will use the class `script_data()` method to finish building the Plupload settings and strings. It also makes sure the script are only loaded once per page load.
- `bp_attachments_current_user_can()` is used to check the current user capabilities in front-end and back-end.
- `bp_attachments_json_response()` is a wrapper of WordPress json response function that makes sure the json response is correctly sent for html5 or html4 uploads.
- `bp_attachments_get_template_part()` is used to safely load our Backbone templates into the administration screens or use `bp_get_template_part()` when on front-end.
Props boonebgorges, DJPaul, johnjamesjacoby.
See <a href="http://buddypress.trac.wordpress.org/ticket/6290">#6290</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbploaderphp">trunk/src/bp-loader.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunksrcbpcorebpcoreattachmentsphp">trunk/src/bp-core/bp-core-attachments.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpcorebpcoreattachmentsphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-core/bp-core-attachments.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-core/bp-core-attachments.php (rev 0)
+++ trunk/src/bp-core/bp-core-attachments.php 2015-04-16 22:25:09 UTC (rev 9756)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,390 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * BuddyPress Attachments functions.
+ *
+ * @package BuddyPress
+ * @subpackage Attachments
+ */
+
+// Exit if accessed directly
+defined( 'ABSPATH' ) || exit;
+
+/**
+ * Get the BuddyPress Plupload settings
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @return array list of BuddyPress Plupload settings
+ */
+function bp_attachments_get_plupload_default_settings() {
+
+ $max_upload_size = wp_max_upload_size();
+
+ if ( ! $max_upload_size ) {
+ $max_upload_size = 0;
+ }
+
+ $defaults = array(
+ 'runtimes' => 'html5,flash,silverlight,html4',
+ 'file_data_name' => 'file',
+ 'multipart_params' => array(
+ 'action' => 'bp_upload_attachment',
+ '_wpnonce' => wp_create_nonce( 'bp-uploader' ),
+ ),
+ 'url' => admin_url( 'admin-ajax.php', 'relative' ),
+ 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
+ 'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ),
+ 'filters' => array(
+ 'max_file_size' => $max_upload_size . 'b',
+ ),
+ 'multipart' => true,
+ 'urlstream_upload' => true,
+ );
+
+ // WordPress is not allowing multi selection for iOs 7 device.. See #29602.
+ if ( wp_is_mobile() && strpos( $_SERVER['HTTP_USER_AGENT'], 'OS 7_' ) !== false &&
+ strpos( $_SERVER['HTTP_USER_AGENT'], 'like Mac OS X' ) !== false ) {
+
+ $defaults['multi_selection'] = false;
+ }
+
+ $settings = array(
+ 'defaults' => $defaults,
+ 'browser' => array(
+ 'mobile' => wp_is_mobile(),
+ 'supported' => _device_can_upload(),
+ ),
+ 'limitExceeded' => is_multisite() && ! is_upload_space_available(),
+ );
+
+ /**
+ * Filter the BuddyPress Plupload default settings.
+ *
+ * @since 2.3.0
+ *
+ * @param array $params Default Plupload parameters array.
+ */
+ return apply_filters( 'bp_attachments_get_plupload_default_settings', $settings );
+}
+
+/**
+ * Builds localization strings for the BuddyPress Uploader scripts
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @return array Plupload default localization strings
+ */
+function bp_attachments_get_plupload_l10n() {
+ // Localization strings
+ return apply_filters( 'bp_attachments_get_plupload_l10n', array(
+ 'queue_limit_exceeded' => __( 'You have attempted to queue too many files.', 'buddypress' ),
+ 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.', 'buddypress' ),
+ 'zero_byte_file' => __( 'This file is empty. Please try another.', 'buddypress' ),
+ 'invalid_filetype' => __( 'This file type is not allowed. Please try another.', 'buddypress' ),
+ 'not_an_image' => __( 'This file is not an image. Please try another.', 'buddypress' ),
+ 'image_memory_exceeded' => __( 'Memory exceeded. Please try another smaller file.', 'buddypress' ),
+ 'image_dimensions_exceeded' => __( 'This is larger than the maximum size. Please try another.', 'buddypress' ),
+ 'default_error' => __( 'An error occurred. Please try again later.', 'buddypress' ),
+ 'missing_upload_url' => __( 'There was a configuration error. Please contact the server administrator.', 'buddypress' ),
+ 'upload_limit_exceeded' => __( 'You may only upload 1 file.', 'buddypress' ),
+ 'http_error' => __( 'HTTP error.', 'buddypress' ),
+ 'upload_failed' => __( 'Upload failed.', 'buddypress' ),
+ 'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.', 'buddypress' ),
+ 'big_upload_queued' => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.', 'buddypress' ),
+ 'io_error' => __( 'IO error.', 'buddypress' ),
+ 'security_error' => __( 'Security error.', 'buddypress' ),
+ 'file_cancelled' => __( 'File canceled.', 'buddypress' ),
+ 'upload_stopped' => __( 'Upload stopped.', 'buddypress' ),
+ 'dismiss' => __( 'Dismiss', 'buddypress' ),
+ 'crunching' => __( 'Crunching…', 'buddypress' ),
+ 'unique_file_warning' => __( 'Make sure to upload a unique file', 'buddypress' ),
+ 'error_uploading' => __( '“%s” has failed to upload.', 'buddypress' )
+ ) );
+}
+
+/**
+ * Enqueues the script needed for the Uploader UI
+ *
+ * @see BP_Attachment::script_data() && BP_Attachment_Avatar::script_data() for examples showing how
+ * to set specific script data
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param string $class name of the class extending BP_Attachment (eg: BP_Attachment_Avatar)
+ */
+function bp_attachments_enqueue_scripts( $class = '' ) {
+ // Enqueue me just once per page, please.
+ if ( did_action( 'bp_attachments_enqueue_scripts' ) ) {
+ return;
+ }
+
+ if ( ! $class || ! class_exists( $class ) ) {
+ return new WP_Error( 'missing_parameter' );
+ }
+
+ // Get an instance of the class and get the script data
+ $attachment = new $class;
+ $script_data = $attachment->script_data();
+
+ $args = bp_parse_args( $script_data, array(
+ 'action' => '',
+ 'file_data_name' => '',
+ 'max_file_size' => 0,
+ 'browse_button' => 'bp-browse-button',
+ 'container' => 'bp-upload-ui',
+ 'drop_element' => 'drag-drop-area',
+ 'bp_params' => array(),
+ 'extra_css' => array(),
+ 'extra_js' => array(),
+ 'feedback_messages' => array(),
+ ), 'attachments_enqueue_scripts' );
+
+ if ( empty( $args['action'] ) || empty( $args['file_data_name'] ) ) {
+ return new WP_Error( 'missing_parameter' );
+ }
+
+ // Get the BuddyPress uploader strings
+ $strings = bp_attachments_get_plupload_l10n();
+
+ // Get the BuddyPress uploader settings
+ $settings = bp_attachments_get_plupload_default_settings();
+
+ // Set feedback messages
+ if ( ! empty( $args['feedback_messages'] ) ) {
+ $strings['feedback_messages'] = $args['feedback_messages'];
+ }
+
+ // Use a temporary var to ease manipulation
+ $defaults = $settings['defaults'];
+
+ // Set the upload action
+ $defaults['multipart_params']['action'] = $args['action'];
+
+ // Set BuddyPress upload parameters if provided
+ if ( ! empty( $args['bp_params'] ) ) {
+ $defaults['multipart_params']['bp_params'] = $args['bp_params'];
+ }
+
+ // Merge other arguments
+ $ui_args = array_intersect_key( $args, array(
+ 'file_data_name' => true,
+ 'browse_button' => true,
+ 'container' => true,
+ 'drop_element' => true,
+ ) );
+
+ $defaults = array_merge( $defaults, $ui_args );
+
+ if ( ! empty( $args['max_file_size'] ) ) {
+ $defaults['filters']['max_file_size'] = $args['max_file_size'] . 'b';
+ }
+
+ // Specific to BuddyPress Avatars
+ if ( 'bp_avatar_upload' === $defaults['multipart_params']['action'] ) {
+
+ // Include the cropping informations for avatars
+ $settings['crop'] = array(
+ 'full_h' => bp_core_avatar_full_height(),
+ 'full_w' => bp_core_avatar_full_width(),
+ );
+
+ // Avatar only need 1 file and 1 only!
+ $defaults['multi_selection'] = false;
+
+ // Does the object already has an avatar set
+ $has_avatar = $defaults['multipart_params']['bp_params']['has_avatar'];
+
+ // What is the object the avatar belongs to
+ $object = $defaults['multipart_params']['bp_params']['object'];
+
+ // Init the Avatar nav
+ $avatar_nav = array(
+ 'upload' => array( 'id' => 'upload', 'caption' => __( 'Upload', 'buddypress' ), 'order' => 0 ),
+
+ // The delete view will only show if the object has an avatar
+ 'delete' => array( 'id' => 'delete', 'caption' => __( 'Delete', 'buddypress' ), 'order' => 100, 'hide' => (int) ! $has_avatar ),
+ );
+
+ // Create the Camera Nav if the WebCam capture feature is enabled
+ if ( bp_avatar_use_webcam() && 'user' === $object ) {
+ $avatar_nav['camera'] = array( 'id' => 'camera', 'caption' => __( 'Camera', 'buddypress' ), 'order' => 10 );
+
+ // Set warning messages
+ $strings['camera_warnings'] = array(
+ 'requesting' => __( 'Requesting video stream, please authorize this website to access to your camera.', 'buddypress'),
+ 'loading' => __( 'Please wait for the video to load.', 'buddypress' ),
+ 'loaded' => __( 'Video stream loaded. You can use the capture button to display the profile photo preview.', 'buddypress' ),
+ 'noaccess' => __( 'You denied this website to access to your camera. Please use the upload form.', 'buddypress' ),
+ 'errormsg' => __( 'Your browser is not supported. Please use the upload form.', 'buddypress' ),
+ 'videoerror' => __( 'Video error. Please use the upload form.', 'buddypress' ),
+ 'ready' => __( 'Your profile photo is ready, use the save button to validate.', 'buddypress' ),
+ 'nocapture' => __( 'No profile photo was captured, please use the capture button first.', 'buddypress' ),
+ );
+ }
+
+ /**
+ * Use this filter to add a navigation to a custom tool to set the object's avatar
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param array $avatar_nav An associative array of available nav items where each item is an array organized this way:
+ * $avatar_nav[ $nav_item_id ] {
+ * @type string $nav_item_id the nav item id in lower case without special characters or space
+ * @type string $caption the name of the item nav that will be displayed in the nav
+ * @type int $order An integer to specify the priority of the item nav, choose one
+ * between 1 and 99 to be after the uploader nav item and before the delete nav item
+ * @type int $hide if set to 1 the item nav will be hidden
+ * (only used for the delete nav item)
+ * }
+ * @param string $object the object the avatar belongs to (eg: user or group)
+ */
+ $settings['nav'] = bp_sort_by_key( apply_filters( 'bp_attachments_avatar_nav', $avatar_nav, $object ), 'order', 'num' );
+ }
+
+ // Set Plupload settings
+ $settings['defaults'] = $defaults;
+
+ /**
+ * Enqueue some extra styles if required
+ *
+ * Extra styles need to be registered.
+ */
+ if ( ! empty( $args['extra_css'] ) ) {
+ foreach ( (array) $args['extra_css'] as $css ) {
+ if ( empty( $css ) ) {
+ continue;
+ }
+
+ wp_enqueue_style( $css );
+ }
+ }
+
+ wp_enqueue_script ( 'bp-plupload' );
+ wp_localize_script( 'bp-plupload', 'BP_Uploader', array( 'strings' => $strings, 'settings' => $settings ) );
+
+ /**
+ * Enqueue some extra scripts if required
+ *
+ * Extra scripts need to be registered.
+ */
+ if ( ! empty( $args['extra_js'] ) ) {
+ foreach ( (array) $args['extra_js'] as $js ) {
+ if ( empty( $js ) ) {
+ continue;
+ }
+
+ wp_enqueue_script( $js );
+ }
+ }
+
+ /**
+ * Fires at the conclusion of bp_attachments_enqueue_scripts()
+ * to avoid the scripts to be loaded more than once.
+ *
+ * @since BuddyPress 2.3.0
+ */
+ do_action( 'bp_attachments_enqueue_scripts' );
+}
+
+/**
+ * Check the current user's capability to edit an avatar for a given object
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param string $capability the capability to check
+ * @param array $args an array containing the item_id and the object to check
+ */
+function bp_attachments_current_user_can( $capability, $args = array() ) {
+ $can = false;
+
+ if ( 'edit_avatar' === $capability ) {
+ /**
+ * Needed avatar arguments are set.
+ */
+ if ( isset( $args['item_id'] ) && isset( $args['object'] ) ) {
+ // Group profile photo
+ if ( bp_is_active( 'groups' ) && 'group' === $args['object'] ) {
+ if ( bp_is_group_create() ) {
+ $can = (bool) groups_is_user_creator( bp_loggedin_user_id(), $args['item_id'] ) || bp_current_user_can( 'bp_moderate' );
+ } else {
+ $can = (bool) groups_is_user_admin( bp_loggedin_user_id(), $args['item_id'] ) || bp_current_user_can( 'bp_moderate' );
+ }
+ // User profile photo
+ } elseif ( bp_is_active( 'xprofile' ) && 'user' === $args['object'] ) {
+ $can = bp_loggedin_user_id() === (int) $args['item_id'] || bp_current_user_can( 'bp_moderate' );
+ }
+ /**
+ * No avatar arguments, fallback to bp_user_can_create_groups()
+ * or bp_is_item_admin()
+ */
+ } else {
+ if ( bp_is_group_create() ) {
+ $can = bp_user_can_create_groups();
+ } else {
+ $can = bp_is_item_admin();
+ }
+ }
+ }
+
+ return apply_filters( 'bp_attachments_current_user_can', $can, $capability, $args );
+}
+
+/**
+ * Send a JSON response back to an Ajax upload request.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param bool true for a success, false otherwise
+ * @param bool true if the Plupload runtime used is html4, false otherwise.
+ * @param mixed $data Data to encode as JSON, then print and die.
+ */
+function bp_attachments_json_response( $success, $is_html4 = false, $data = null ) {
+ $response = array( 'success' => $success );
+
+ if ( isset( $data ) ) {
+ $response['data'] = $data;
+ }
+
+ // Send regular json response
+ if ( ! $is_html4 ) {
+ wp_send_json( $response );
+
+ /**
+ * Send specific json response
+ * the html4 Plupload handler requires a text/html content-type for older IE.
+ * See https://core.trac.wordpress.org/ticket/31037
+ */
+ } else {
+ echo wp_json_encode( $response );
+
+ wp_die();
+ }
+}
+
+/**
+ * Get an Attachment template part.
+ *
+ * @since BuddyPress (2.3.0)
+ *
+ * @param string Template part slug. eg 'uploader' for 'uploader.php'.
+ */
+function bp_attachments_get_template_part( $slug ) {
+ $attachment_template_part = 'assets/_attachments/' . $slug;
+
+ // Load the attachment template in WP Administratin screens
+ if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
+ $attachment_admin_template_part = buddypress()->themes_dir . '/bp-legacy/buddypress/' . $attachment_template_part . '.php';
+
+ // Check the template part exists
+ if ( ! file_exists( $attachment_admin_template_part ) ) {
+ return false;
+ }
+
+ // load the template part
+ require( $attachment_admin_template_part );
+
+ // Load the attachment template in WP_USE_THEMES env.
+ } else {
+ bp_get_template_part( $attachment_template_part );
+ }
+}
</ins></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-04-16 22:11:05 UTC (rev 9755)
+++ trunk/src/bp-loader.php 2015-04-16 22:25:09 UTC (rev 9756)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -451,26 +451,27 @@
</span><span class="cx" style="display: block; padding: 0 10px"> require( $this->plugin_dir . 'bp-core/bp-core-theme-compatibility.php' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Require all of the BuddyPress core libraries
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- require( $this->plugin_dir . 'bp-core/bp-core-dependency.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-actions.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-caps.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-cache.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-update.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-options.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-classes.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-filters.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-avatars.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-widgets.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-template.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-component.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-functions.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' );
- require( $this->plugin_dir . 'bp-core/bp-core-loader.php' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ require( $this->plugin_dir . 'bp-core/bp-core-dependency.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-actions.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-caps.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-cache.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-update.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-options.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-classes.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-filters.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-attachments.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-avatars.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-widgets.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-template.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-component.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-functions.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' );
+ require( $this->plugin_dir . 'bp-core/bp-core-loader.php' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Skip or load deprecated content
</span><span class="cx" style="display: block; padding: 0 10px"> if ( false !== $this->load_deprecated ) {
</span></span></pre>
</div>
</div>
</body>
</html>