<!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][8770] trunk/src: Core: load RTL stylesheets when we need to.</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">
<dt>Revision</dt> <dd><a href="http://buddypress.trac.wordpress.org/changeset/8770">8770</a></dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2014-08-09 14:55:29 +0000 (Sat, 09 Aug 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Core: load RTL stylesheets when we need to.
Fixes <a href="http://buddypress.trac.wordpress.org/ticket/5614">#5614</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpactivitybpactivityadminphp">trunk/src/bp-activity/bp-activity-admin.php</a></li>
<li><a href="#trunksrcbpactivitybpactivitycssjsphp">trunk/src/bp-activity/bp-activity-cssjs.php</a></li>
<li><a href="#trunksrcbpcorebpcoreadminphp">trunk/src/bp-core/bp-core-admin.php</a></li>
<li><a href="#trunksrcbpcorebpcorecssjsphp">trunk/src/bp-core/bp-core-cssjs.php</a></li>
<li><a href="#trunksrcbpcoredeprecated21php">trunk/src/bp-core/deprecated/2.1.php</a></li>
<li><a href="#trunksrcbpgroupsbpgroupsadminphp">trunk/src/bp-groups/bp-groups-admin.php</a></li>
<li><a href="#trunksrcbpmembersbpmembersadminphp">trunk/src/bp-members/bp-members-admin.php</a></li>
<li><a href="#trunksrcbptemplatesbplegacybuddypressfunctionsphp">trunk/src/bp-templates/bp-legacy/buddypress-functions.php</a></li>
<li><a href="#trunksrcbpxprofilebpxprofilecssjsphp">trunk/src/bp-xprofile/bp-xprofile-cssjs.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpactivitybpactivityadminphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-activity/bp-activity-admin.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-activity/bp-activity-admin.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-activity/bp-activity-admin.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -284,6 +284,12 @@
</span><span class="cx"> ) );
</span><span class="cx"> wp_enqueue_style( 'bp_activity_admin_css', $bp->plugin_url . "bp-activity/admin/css/admin.{$min}css", array(), bp_get_version() );
</span><span class="cx">
</span><ins>+ wp_style_add_data( 'bp_activity_admin_css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp_activity_admin_css', 'suffix', $min );
+ }
+
+
</ins><span class="cx"> // Handle spam/un-spam/delete of activities
</span><span class="cx"> if ( !empty( $doaction ) && ! in_array( $doaction, array( '-1', 'edit', 'save', ) ) ) {
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcbpactivitybpactivitycssjsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-activity/bp-activity-cssjs.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-activity/bp-activity-cssjs.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-activity/bp-activity-cssjs.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -20,12 +20,16 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
- $file = is_rtl() ? "mentions-rtl{$min}.css" : "mentions{$min}.css";
</del><ins>+ $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</ins><span class="cx">
</span><span class="cx"> wp_enqueue_script( 'bp-mentions', buddypress()->plugin_url . "bp-activity/js/mentions{$min}.js", array( 'jquery', 'jquery-atwho' ), bp_get_version(), true );
</span><del>- wp_enqueue_style( 'bp-mentions-css', buddypress()->plugin_url . "bp-activity/css/{$file}", array(), bp_get_version() );
</del><ins>+ wp_enqueue_style( 'bp-mentions-css', buddypress()->plugin_url . "bp-activity/css/mentions{$min}.css", array(), bp_get_version() );
</ins><span class="cx">
</span><ins>+ wp_style_add_data( 'bp-mentions-css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp-mentions-css', 'suffix', $min );
+ }
+
</ins><span class="cx"> // Print a list of the current user's friends to the page for quicker @mentions lookups.
</span><span class="cx"> do_action( 'bp_activity_mentions_prime_results' );
</span><span class="cx"> }
</span><span class="lines">@@ -49,12 +53,16 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
- $file = is_rtl() ? "mentions-rtl{$min}.css" : "mentions{$min}.css";
</del><ins>+ $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</ins><span class="cx">
</span><span class="cx"> wp_enqueue_script( 'bp-mentions', buddypress()->plugin_url . "bp-activity/js/mentions{$min}.js", array( 'jquery', 'jquery-atwho' ), bp_get_version(), true );
</span><del>- wp_enqueue_style( 'bp-mentions-css', buddypress()->plugin_url . "bp-activity/css/{$file}", array(), bp_get_version() );
</del><ins>+ wp_enqueue_style( 'bp-mentions-css', buddypress()->plugin_url . "bp-activity/css/mentions{$min}.css", array(), bp_get_version() );
</ins><span class="cx">
</span><ins>+ wp_style_add_data( 'bp-mentions-css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp-mentions-css', 'suffix', $min );
+ }
+
</ins><span class="cx"> // Print a list of the current user's friends to the page for quicker @mentions lookups.
</span><span class="cx"> do_action( 'bp_activity_mentions_prime_results' );
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunksrcbpcorebpcoreadminphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-core/bp-core-admin.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-core/bp-core-admin.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-core/bp-core-admin.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -466,12 +466,16 @@
</span><span class="cx"> * @since BuddyPress (1.6.0)
</span><span class="cx"> */
</span><span class="cx"> public function enqueue_scripts() {
</span><del>-
</del><span class="cx"> $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</span><span class="cx">
</span><span class="cx"> $file = $this->css_url . "common{$min}.css";
</span><span class="cx"> $file = apply_filters( 'bp_core_admin_common_css', $file );
</span><span class="cx"> wp_enqueue_style( 'bp-admin-common-css', $file, array(), bp_get_version() );
</span><ins>+
+ wp_style_add_data( 'bp-admin-common-css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp-admin-common-css', 'suffix', $min );
+ }
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> /** About *****************************************************************/
</span></span></pre></div>
<a id="trunksrcbpcorebpcorecssjsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-core/bp-core-cssjs.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-core/bp-core-cssjs.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-core/bp-core-cssjs.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -45,19 +45,23 @@
</span><span class="cx"> * @since BuddyPress (2.1.0)
</span><span class="cx"> */
</span><span class="cx"> function bp_core_register_common_styles() {
</span><del>- $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css';
- $rtl = is_rtl() ? '-rtl' : '';
</del><ins>+ $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</ins><span class="cx"> $url = buddypress()->plugin_url . 'bp-core/css/';
</span><span class="cx">
</span><span class="cx"> $styles = apply_filters( 'bp_core_register_common_styles', array(
</span><span class="cx"> 'bp-admin-bar' => array(
</span><del>- 'file' => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$rtl}{$ext}" ),
</del><ins>+ 'file' => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$min}.css" ),
</ins><span class="cx"> 'dependencies' => array( 'admin-bar' )
</span><span class="cx"> )
</span><span class="cx"> ) );
</span><span class="cx">
</span><span class="cx"> foreach ( $styles as $id => $style ) {
</span><span class="cx"> wp_register_style( $id, $style['file'], $style['dependencies'], bp_get_version() );
</span><ins>+
+ wp_style_add_data( $id, 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( $id, 'suffix', $min );
+ }
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> add_action( 'bp_enqueue_scripts', 'bp_core_register_common_styles', 1 );
</span></span></pre></div>
<a id="trunksrcbpcoredeprecated21php"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-core/deprecated/2.1.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-core/deprecated/2.1.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-core/deprecated/2.1.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -42,20 +42,24 @@
</span><span class="cx"> * @since BuddyPress (2.1.0)
</span><span class="cx"> */
</span><span class="cx"> function bp_core_register_deprecated_styles() {
</span><del>- $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css';
- $rtl = is_rtl() ? '-rtl' : '';
</del><ins>+ $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</ins><span class="cx"> $url = buddypress()->plugin_url . 'bp-core/deprecated/css/';
</span><span class="cx">
</span><span class="cx"> $styles = apply_filters( 'bp_core_register_deprecated_styles', array(
</span><span class="cx"> // Messages
</span><span class="cx"> 'bp-messages-autocomplete' => array(
</span><del>- 'file' => "{$url}autocomplete/jquery.autocompletefb{$rtl}{$ext}",
</del><ins>+ 'file' => "{$url}autocomplete/jquery.autocompletefb{$min}.css",
</ins><span class="cx"> 'dependencies' => array(),
</span><span class="cx"> )
</span><span class="cx"> ) );
</span><span class="cx">
</span><span class="cx"> foreach ( $styles as $id => $style ) {
</span><span class="cx"> wp_register_style( $id, $style['file'], $style['dependencies'], bp_get_version() );
</span><ins>+
+ wp_style_add_data( $id, 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( $id, 'suffix', $min );
+ }
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> add_action( 'bp_enqueue_scripts', 'bp_core_register_deprecated_styles', 1 );
</span><span class="lines">@@ -344,8 +348,6 @@
</span><span class="cx"> * @deprecated BuddyPress (2.1.0)
</span><span class="cx"> */
</span><span class="cx"> function bp_core_load_buddybar_css() {
</span><del>- global $wp_styles;
-
</del><span class="cx"> if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) || ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) )
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="lines">@@ -358,9 +360,11 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() );
</span><del>- $wp_styles->add_data( 'bp-admin-bar', 'rtl', true );
- if ( $min )
- $wp_styles->add_data( 'bp-admin-bar', 'suffix', $min );
</del><ins>+
+ wp_style_add_data( 'bp-admin-bar', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp-admin-bar', 'suffix', $min );
+ }
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'bp_init', 'bp_core_load_buddybar_css' );
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcbpgroupsbpgroupsadminphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-groups/bp-groups-admin.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-groups/bp-groups-admin.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-groups/bp-groups-admin.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -168,13 +168,18 @@
</span><span class="cx">
</span><span class="cx"> // Enqueue CSS and JavaScript
</span><span class="cx"> wp_enqueue_script( 'bp_groups_admin_js', $bp->plugin_url . "bp-groups/admin/js/admin.{$min}js", array( 'jquery', 'wp-ajax-response', 'jquery-ui-autocomplete' ), bp_get_version(), true );
</span><del>- wp_enqueue_style( 'bp_groups_admin_css', $bp->plugin_url . "bp-groups/admin/css/admin.{$min}css", array(), bp_get_version() );
-
</del><span class="cx"> wp_localize_script( 'bp_groups_admin_js', 'BP_Group_Admin', array(
</span><span class="cx"> 'add_member_placeholder' => __( 'Start typing a username to add a new member.', 'buddypress' ),
</span><span class="cx"> 'warn_on_leave' => __( 'If you leave this page, you will lose any unsaved changes you have made to the group.', 'buddypress' ),
</span><span class="cx"> ) );
</span><ins>+ wp_enqueue_style( 'bp_groups_admin_css', $bp->plugin_url . "bp-groups/admin/css/admin.{$min}css", array(), bp_get_version() );
</ins><span class="cx">
</span><ins>+ wp_style_add_data( 'bp_groups_admin_css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp_groups_admin_css', 'suffix', $min );
+ }
+
+
</ins><span class="cx"> if ( $doaction && 'save' == $doaction ) {
</span><span class="cx"> // Get group ID
</span><span class="cx"> $group_id = isset( $_REQUEST['gid'] ) ? (int) $_REQUEST['gid'] : '';
</span></span></pre></div>
<a id="trunksrcbpmembersbpmembersadminphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-members/bp-members-admin.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-members/bp-members-admin.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-members/bp-members-admin.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -548,11 +548,16 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</span><del>-
</del><span class="cx"> $css = $this->css_url . "admin{$min}.css";
</span><span class="cx"> $css = apply_filters( 'bp_members_admin_css', $css );
</span><ins>+
</ins><span class="cx"> wp_enqueue_style( 'bp-members-css', $css, array(), bp_get_version() );
</span><span class="cx">
</span><ins>+ wp_style_add_data( 'bp-members-css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'bp-members-css', 'suffix', $min );
+ }
+
</ins><span class="cx"> // Only load javascript for BuddyPress profile
</span><span class="cx"> if ( get_current_screen()->id == $this->user_page ) {
</span><span class="cx"> $js = $this->js_url . "admin{$min}.js";
</span></span></pre></div>
<a id="trunksrcbptemplatesbplegacybuddypressfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-templates/bp-legacy/buddypress-functions.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-templates/bp-legacy/buddypress-functions.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-templates/bp-legacy/buddypress-functions.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -199,16 +199,19 @@
</span><span class="cx"> * @uses wp_enqueue_style() To enqueue the styles
</span><span class="cx"> */
</span><span class="cx"> public function enqueue_styles() {
</span><ins>+ $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</ins><span class="cx">
</span><del>- // LTR or RTL
- $file = is_rtl() ? 'buddypress-rtl.css' : 'buddypress.css';
-
</del><span class="cx"> // Locate the BP stylesheet
</span><del>- $asset = $this->locate_asset_in_stack( $file, 'css' );
</del><ins>+ $asset = $this->locate_asset_in_stack( 'buddypress.css', 'css' );
</ins><span class="cx">
</span><span class="cx"> // Enqueue BuddyPress-specific styling, if found
</span><span class="cx"> if ( isset( $asset['location'], $asset['handle'] ) ) {
</span><span class="cx"> wp_enqueue_style( $asset['handle'], $asset['location'], array(), $this->version, 'screen' );
</span><ins>+
+ wp_style_add_data( $asset['handle'], 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( $asset['handle'], 'suffix', $min );
+ }
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcbpxprofilebpxprofilecssjsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/bp-xprofile/bp-xprofile-cssjs.php (8769 => 8770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/bp-xprofile/bp-xprofile-cssjs.php 2014-08-09 13:05:19 UTC (rev 8769)
+++ trunk/src/bp-xprofile/bp-xprofile-cssjs.php 2014-08-09 14:55:29 UTC (rev 8770)
</span><span class="lines">@@ -18,7 +18,13 @@
</span><span class="cx"> function xprofile_add_admin_css() {
</span><span class="cx"> if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) {
</span><span class="cx"> $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
</span><ins>+
</ins><span class="cx"> wp_enqueue_style( 'xprofile-admin-css', buddypress()->plugin_url . "bp-xprofile/admin/css/admin{$min}.css", array(), bp_get_version() );
</span><ins>+
+ wp_style_add_data( 'xprofile-admin-css', 'rtl', true );
+ if ( $min ) {
+ wp_style_add_data( 'xprofile-admin-css', 'suffix', $min );
+ }
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> add_action( 'admin_enqueue_scripts', 'xprofile_add_admin_css' );
</span></span></pre>
</div>
</div>
</body>
</html>