Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php
+++ b/fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php
@@ -776,8 +776,19 @@
$acceptedFields[] = 'reactions_count';
}
+ // Request::only() does not sanitize. Section titles currently render as escaped
+ // text, so this is hygiene rather than a live sink, but keep the stored value
+ // clean so a future v-html render cannot turn it into one.
$topicData = $request->only($acceptedFields);
+ if (isset($topicData['title'])) {
+ $topicData['title'] = sanitize_text_field($topicData['title']);
+ }
+
+ if (isset($topicData['status'])) {
+ $topicData['status'] = sanitize_text_field($topicData['status']);
+ }
+
if (!empty($topicData['scheduled_at'])) {
$topic->reactions_count = 0;
} elseif (isset($topicData['reactions_count'])) {
@@ -1054,10 +1065,25 @@
$acceptedFields = [ 'title', 'status', 'slug' ];
// empty title/slug/status must not overwrite, but a literal "0" is a valid value
+ // Request::only() is a plain array pick with no sanitization, so each field is
+ // sanitized here the same way createLesson/updateLesson do it. The title is
+ // rendered with v-html in the course views, so it must not carry markup.
$lessonData = array_filter($request->only($acceptedFields), function ($value) {
return $value !== null && $value !== '';
});
+ if (isset($lessonData['title'])) {
+ $lessonData['title'] = sanitize_text_field($lessonData['title']);
+ }
+
+ if (isset($lessonData['slug'])) {
+ $lessonData['slug'] = sanitize_title($lessonData['slug']);
+ }
+
+ if (isset($lessonData['status']) && !in_array($lessonData['status'], ['draft', 'published', 'archived'], true)) {
+ unset($lessonData['status']);
+ }
+
if (Arr::get($lessonData, 'status') === 'published' && $lesson->status !== 'published') {
if (empty($lesson->scheduled_at)) {
$lessonData['scheduled_at'] = current_time('mysql');
--- a/fluent-community/Modules/Integrations/FluentPlayer/Bootstrap.php
+++ b/fluent-community/Modules/Integrations/FluentPlayer/Bootstrap.php
@@ -79,6 +79,8 @@
'skin' => 'modern',
'brandColor' => '#4a90e2',
'controlBarColor' => '',
+ 'playButtonColor' => '',
+ 'playButtonBgColor' => '',
'controls' => [
'play' => true,
'volume' => true,
@@ -121,6 +123,8 @@
'skin' => 'sanitize_text_field',
'brandColor' => 'sanitize_text_field',
'controlBarColor' => 'sanitize_text_field',
+ 'playButtonColor' => 'sanitize_text_field',
+ 'playButtonBgColor' => 'sanitize_text_field',
'controls.*' => 'rest_sanitize_boolean',
'behaviors.*' => 'rest_sanitize_boolean',
'video_upload' => 'sanitize_text_field',
@@ -140,6 +144,8 @@
$settings['enable_audio'] = Arr::get($settings, 'enable_audio') === 'yes' ? 'yes' : 'no';
$settings['brandColor'] = self::sanitizeColor(Arr::get($settings, 'brandColor', ''));
$settings['controlBarColor'] = self::sanitizeColor(Arr::get($settings, 'controlBarColor', ''));
+ $settings['playButtonColor'] = self::sanitizeColor(Arr::get($settings, 'playButtonColor', ''));
+ $settings['playButtonBgColor'] = self::sanitizeColor(Arr::get($settings, 'playButtonBgColor', ''));
Utility::updateOption('_fluent_player_settings', $settings);
@@ -374,7 +380,7 @@
if (!isset($data['meta'])) {
$data['meta'] = [];
}
- $data['meta']['media_preview'] = array_filter($media);
+ $data['meta']['media_preview'] = array_filter(self::sanitizeMediaHtml($media));
}
$audioMedias = $this->sanitizeAudioMedias($requestData);
if ($audioMedias) {
@@ -392,7 +398,7 @@
if (!isset($data['meta'])) {
$data['meta'] = [];
}
- $data['meta']['media_preview'] = array_filter($media);
+ $data['meta']['media_preview'] = array_filter(self::sanitizeMediaHtml($media));
}
$audioMedias = $this->sanitizeAudioMedias($requestData);
if ($audioMedias) {
@@ -404,6 +410,20 @@
return $data;
}
+ /**
+ * media_preview.html is rendered with v-html in _MediaPreview.vue whenever the
+ * player itself cannot handle the media, so request-supplied markup has to go
+ * through the oembed allowlist before it is stored.
+ */
+ private static function sanitizeMediaHtml($media)
+ {
+ if (!empty($media['html'])) {
+ $media['html'] = FluentCommunityAppServicesRemoteUrlParser::sanitizeOembedHtml($media['html']);
+ }
+
+ return $media;
+ }
+
public function maybeUpdateUploadedMedia($uploadedMedias, $requestData)
{
$media = Arr::get($requestData, 'meta.media_preview', []);
--- a/fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php
+++ b/fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php
@@ -344,25 +344,18 @@
}
";
}
- $brandingColor = Bootstrap::sanitizeColor(Arr::get($settings, 'brandColor', ''));
- if ($brandingColor) {
- $customCss .= "
- #fluent_player_" . esc_attr($instanceId) . " {
- --media-brand: " . esc_attr($brandingColor) . ";
- }
- ";
- }
- $controlBarColor = Bootstrap::sanitizeColor(Arr::get($settings, 'controlBarColor', ''));
- if ($brandingColor || $controlBarColor) {
+ $colorVars = array_filter([
+ '--media-brand' => Bootstrap::sanitizeColor(Arr::get($settings, 'brandColor', '')),
+ '--fp-control-bar-bg' => Bootstrap::sanitizeColor(Arr::get($settings, 'controlBarColor', '')),
+ '--media-play-color' => Bootstrap::sanitizeColor(Arr::get($settings, 'playButtonColor', '')),
+ '--media-play-bg' => Bootstrap::sanitizeColor(Arr::get($settings, 'playButtonBgColor', ''))
+ ]);
+ if ($colorVars) {
$customCss .= "
#fluent_player_" . esc_attr($instanceId) . " {";
- if ($brandingColor) {
- $customCss .= "
- --media-brand: " . esc_attr($brandingColor) . ";";
- }
- if ($controlBarColor) {
+ foreach ($colorVars as $varName => $varValue) {
$customCss .= "
- --fp-control-bar-bg: " . esc_attr($controlBarColor) . ";";
+ " . $varName . ": " . esc_attr($varValue) . ";";
}
$customCss .= "
}
--- a/fluent-community/app/Functions/Utility.php
+++ b/fluent-community/app/Functions/Utility.php
@@ -263,6 +263,7 @@
$defaults = [
'can_customize_username' => 'no',
'can_change_email' => 'no',
+ 'can_change_password' => 'yes',
'show_last_activity' => 'yes',
'can_deactive_account' => 'no',
'email_auto_login' => 'yes',
--- a/fluent-community/app/Hooks/Handlers/ActivityMonitorHandler.php
+++ b/fluent-community/app/Hooks/Handlers/ActivityMonitorHandler.php
@@ -36,26 +36,33 @@
}
});
- add_action('wp_ajax_fluent_community_renew_nonce', function () {
+ add_action('wp_ajax_fluent_community_renew_nonce', [$this, 'renewNonce']);
- $ajax_nonce = Arr::get($_REQUEST, 'ajax_nonce'); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
-
- if (!wp_verify_nonce($ajax_nonce, 'fluent_community_ajax_nonce')) {
- wp_send_json(['message' => 'Invalid nonce'], 400);
- }
-
- $currentProfile = Helper::getCurrentProfile();
- if (!$currentProfile) {
- wp_send_json(['message' => 'Invalid user'], 400);
- }
-
- wp_send_json([
- 'rest_nonce' => wp_create_nonce('wp_rest'),
- 'ajax_nonce' => wp_create_nonce('fluent_community_ajax_nonce'),
- ], 200);
+ // Logged-out: without this, WP returns "0"/200 and the SPA loops on a stale nonce.
+ add_action('wp_ajax_nopriv_fluent_community_renew_nonce', function () {
+ wp_send_json(['message' => __('Your session has expired. Please log in again.', 'fluent-community')], 401);
});
}
+ public function renewNonce()
+ {
+ $ajax_nonce = Arr::get($_REQUEST, 'ajax_nonce'); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
+
+ if (!wp_verify_nonce($ajax_nonce, 'fluent_community_ajax_nonce')) {
+ wp_send_json(['message' => __('Invalid nonce', 'fluent-community')], 400);
+ }
+
+ $currentProfile = Helper::getCurrentProfile();
+ if (!$currentProfile) {
+ wp_send_json(['message' => __('Invalid user', 'fluent-community')], 401);
+ }
+
+ wp_send_json([
+ 'rest_nonce' => wp_create_nonce('wp_rest'),
+ 'ajax_nonce' => wp_create_nonce('fluent_community_ajax_nonce'),
+ ], 200);
+ }
+
public function handleNewCommentEvent($comment, $feed)
{
--- a/fluent-community/app/Hooks/Handlers/NotificationEventHandler.php
+++ b/fluent-community/app/Hooks/Handlers/NotificationEventHandler.php
@@ -203,8 +203,8 @@
$notificationContent = sprintf(
/* translators: %1$s is the role name, %2$s is the space title */
__('You have been added as %1$s in %2$s', 'fluent-community'),
- '<b>' . $pivot->role . '</b>',
- '<b>' . $space->title . '</b>'
+ '<b>' . esc_html($pivot->role) . '</b>',
+ '<b>' . esc_html($space->title) . '</b>'
);
$route = [
@@ -266,7 +266,7 @@
$commenter,
'<b class="fcom_nrc">' . ($totalUsers - 1) . '</b>',
'<span class="fcom_nft">' . $feedTitle . '</span>',
- '<b class="fcom_nst">' . $feed->space->title . '</b>'
+ '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
);
} else {
$notificationContent = sprintf(
@@ -274,7 +274,7 @@
__('%1$s commented on your post: %2$s in %3$s', 'fluent-community'),
$commenter,
'<span class="fcom_nft">' . $feedTitle . '</span>',
- '<b class="fcom_nst">' . $feed->space->title . '</b>'
+ '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
);
}
} else {
@@ -303,7 +303,7 @@
__('%1$s commented on your post: %2$s in %3$s', 'fluent-community'),
$commenter,
'<span class="fcom_nft">' . $feedTitle . '</span>',
- '<b class="fcom_nst">' . $feed->space->title . '</b>'
+ '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
);
} else {
$notificationContent = sprintf(
@@ -411,7 +411,7 @@
$commenter,
'<b class="fcom_nrc">' . ($totalUsers - 1) . '</b>',
$feedTitle,
- '<b class="fcom_nst">' . $feed->space->title . '</b>'
+ '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
);
} else {
$notificationContent = sprintf(
@@ -419,7 +419,7 @@
__('%1$s also commented on %2$s in %3$s', 'fluent-community'),
$commenter,
$feedTitle,
- '<b class="fcom_nst">' . $feed->space->title . '</b>'
+ '<b class="fcom_nst">' . esc_html($feed->space->title) . '</b>'
);
}
} else {
@@ -447,7 +447,7 @@
__('%1$s also commented on %2$s in %3$s', 'fluent-community'),
$commenter,
$feedTitle,
- '<b class="fcom_nst">' . $space->title . '</b>'
+ '<b class="fcom_nst">' . esc_html($space->title) . '</b>'
);
} else {
$notificationContent = sprintf(
--- a/fluent-community/app/Hooks/Handlers/PortalHandler.php
+++ b/fluent-community/app/Hooks/Handlers/PortalHandler.php
@@ -318,7 +318,7 @@
<div class="fcom_user_menu_item">
<div class="fcom_profile_extend">
<div class="fcom_profile_menu">
- <div class="user_avatar">
+ <div class="user_avatar" role="button" tabindex="0" aria-expanded="false" aria-controls="fcom_profile_sub_menu" aria-label="<?php echo esc_attr__('Account menu', 'fluent-community'); ?>">
<img alt="<?php echo esc_attr($auth->display_name); ?>" src="<?php echo esc_url($auth->avatar); ?>"/>
<span class="avatar_icon">
<svg xmlns="http://www.w3.org/2000/svg" height="8" width="8"
@@ -331,7 +331,7 @@
<span class="user_name">
<?php echo esc_html($auth->display_name); ?>
</span>
- <ul class="fcom_profile_sub_menu">
+ <ul id="fcom_profile_sub_menu" class="fcom_profile_sub_menu">
<li class="fcom_profile_block">
<a href="<?php echo esc_url(Helper::baseUrl('/u/' . $auth->username)); ?>">
<div class="fcom_profile_avatar">
--- a/fluent-community/app/Http/Controllers/CommentsController.php
+++ b/fluent-community/app/Http/Controllers/CommentsController.php
@@ -405,12 +405,15 @@
}
}
+ // type/provider reach :class bindings and width/height a :style binding in
+ // _MediaPreview.vue. Neither is an executable sink, but the stored values are
+ // request-supplied so they are normalised here rather than trusted.
$commentData['meta']['media_preview'] = array_filter([
'image' => sanitize_url(Arr::get($requestData, 'meta.media_preview.image', '')),
- 'type' => Arr::get($requestData, 'meta.media_preview.type', 'image'),
- 'provider' => Arr::get($requestData, 'meta.media_preview.provider', ''),
- 'height' => Arr::get($requestData, 'meta.media_preview.height', 0),
- 'width' => Arr::get($requestData, 'meta.media_preview.width', 0),
+ 'type' => sanitize_text_field(Arr::get($requestData, 'meta.media_preview.type', 'image')),
+ 'provider' => sanitize_text_field(Arr::get($requestData, 'meta.media_preview.provider', '')),
+ 'height' => (int) Arr::get($requestData, 'meta.media_preview.height', 0),
+ 'width' => (int) Arr::get($requestData, 'meta.media_preview.width', 0),
]);
return [$commentData, []];
--- a/fluent-community/app/Http/Controllers/ProfileController.php
+++ b/fluent-community/app/Http/Controllers/ProfileController.php
@@ -86,6 +86,7 @@
$profile['short_description'] = $xprofile->short_description;
$profile['can_change_username'] = $isAdmin || Utility::getPrivacySetting('can_customize_username') === 'yes';
$profile['can_change_email'] = current_user_can('edit_users') || (Utility::getPrivacySetting('can_change_email') === 'yes' && $isOwn);
+ $profile['can_change_password'] = $isOwn && Utility::getPrivacySetting('can_change_password') === 'yes';
}
$profileBaseUrl = Helper::baseUrl('u/' . $xprofile->username . '/');
@@ -458,6 +459,12 @@
]);
}
+ if (Utility::getPrivacySetting('can_change_password') !== 'yes') {
+ return $this->sendError([
+ 'message' => __('Password change is disabled', 'fluent-community')
+ ]);
+ }
+
$data = $request->get('data', []);
$this->validate($data, [
--- a/fluent-community/app/Models/Activity.php
+++ b/fluent-community/app/Models/Activity.php
@@ -100,11 +100,11 @@
switch ($this->action_name) {
case 'feed_published':
/* translators: %1$s is the person name and %2$s is the feed excerpt */
- $message = sprintf(__('%1$s published a new status %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . $this->feed->getHumanExcerpt() . '</span>');
+ $message = sprintf(__('%1$s published a new status %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . esc_html($this->feed->getHumanExcerpt()) . '</span>');
break;
case 'comment_added':
/* translators: %1$s is the person name and %2$s is the feed excerpt */
- $message = sprintf(__('%1$s added a comment on %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . $this->feed->getHumanExcerpt() . '</span>');
+ $message = sprintf(__('%1$s added a comment on %2$s', 'fluent-community'), '<span class="fcom_user_name">' . esc_html($this->xprofile->display_name) . '</span>', '<span class="fcom_feed_excerpt">' . esc_html($this->feed->getHumanExcerpt()) . '</span>');
break;
}
--- a/fluent-community/app/Models/BaseSpace.php
+++ b/fluent-community/app/Models/BaseSpace.php
@@ -541,7 +541,7 @@
}
if ($this->logo) {
- return '<img alt="" src="' . $this->logo . '"/>';
+ return '<img alt="" src="' . esc_url($this->logo) . '"/>';
}
if ($imoji = Arr::get($this->settings, 'emoji')) { // phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure
--- a/fluent-community/app/Models/Comment.php
+++ b/fluent-community/app/Models/Comment.php
@@ -229,7 +229,7 @@
$meta = [];
}
- return $meta;
+ return Helper::sanitizeStoredMediaPreview($meta);
}
public function getHumanExcerpt($length = 30)
--- a/fluent-community/app/Models/Feed.php
+++ b/fluent-community/app/Models/Feed.php
@@ -207,7 +207,7 @@
$meta = [];
}
- return $meta;
+ return Helper::sanitizeStoredMediaPreview($meta);
}
public function scopeSearchBy($query, $search, $in = [])
--- a/fluent-community/app/Services/CustomSanitizer.php
+++ b/fluent-community/app/Services/CustomSanitizer.php
@@ -322,7 +322,11 @@
if (!empty($item['icon_svg'])) {
$item['icon_svg'] = self::sanitizeSvg($item['icon_svg']);
}
-
+
+ if (!empty($item['shape_svg'])) {
+ $item['shape_svg'] = self::sanitizeSvg($item['shape_svg']);
+ }
+
if (Arr::get($item, 'privacy') == 'members_only') {
$item['membership_ids'] = array_map('sanitize_text_field', (array)Arr::get($item, 'membership_ids', []));
}
@@ -355,16 +359,20 @@
}
$tags = wp_kses_allowed_html('post');
- $tags['style'] = [
- 'types' => [],
- ];
- // iframe
+ // No <style> element: kses filters style="" attributes but never the text content
+ // of a <style> block, so allowing it would let any role that can author this markup
+ // persist CSS (@import, attribute-selector data exfiltration, UI redress) against
+ // every viewer. Embed/media HTML never needs a <style> element.
+
+ // iframe. Note there is deliberately no 'srcdoc' here: a srcdoc iframe without a
+ // sandbox attribute is same-origin with the portal, so allowing it would let any
+ // role that can author embed markup run script against every viewer. Real embed
+ // providers only ever use src.
$tags['iframe'] = [
'width' => [],
'height' => [],
'src' => [],
- 'srcdoc' => [],
'title' => [],
'frameborder' => [],
'allow' => [],
@@ -372,7 +380,6 @@
'id' => [],
'allowfullscreen' => [],
'referrerpolicy' => [],
- 'style' => [],
];
$tags = apply_filters('fluent_community/allowed_html_tags', $tags);
--- a/fluent-community/app/Services/FeedsHelper.php
+++ b/fluent-community/app/Services/FeedsHelper.php
@@ -728,6 +728,53 @@
return $feed;
}
+ /**
+ * Whether the current request may attach a raw "HTML Code" (iframe_html) embed.
+ *
+ * Mirrors the frontend rule in _VideoEmbeder.vue, which exposes that editor tab only
+ * when is_admin is true — i.e. community_moderator globally or within the target
+ * space. Programmatic creation is judged on the supplied author's permission rather
+ * than the HTTP session, so integrations work without a logged-in user. Defaults to
+ * denying when no user can be established at all.
+ *
+ * @param array $requestData Raw request payload.
+ * @param array $data Feed data being assembled.
+ * @param FluentCommunityAppModelsFeed|null $existingFeed Set when editing.
+ * @return bool
+ */
+ private static function canEmbedRawHtml($requestData, $data, $existingFeed = null)
+ {
+ // FeedsController::store()/update() already resolved this against the target space.
+ $precomputed = Arr::get($requestData, 'is_admin');
+ if ($precomputed !== null) {
+ return (bool)$precomputed;
+ }
+
+ // Every other caller resolves it here, against the post's author where one has
+ // been established server-side (createFeed() takes user_id from its caller), and
+ // the current user otherwise. Read from $data and never $requestData: the author
+ // is assigned by the controller, so a request cannot nominate whose permission
+ // gets checked.
+ $userId = (int)Arr::get($data, 'user_id');
+ if (!$userId) {
+ $userId = get_current_user_id();
+ }
+
+ $user = $userId ? User::find($userId) : null;
+ if (!$user) {
+ return false;
+ }
+
+ $space = null;
+ if ($existingFeed) {
+ $space = $existingFeed->space;
+ } elseif ($spaceId = (Arr::get($data, 'space_id') ?: Arr::get($requestData, 'space_id'))) {
+ $space = BaseSpace::find($spaceId);
+ }
+
+ return (bool)$user->hasPermissionOrInCurrentSpace('community_moderator', $space);
+ }
+
public static function processFeedMetaData($data, $requestData, $existingFeed = null)
{
if (empty($data['meta'])) {
@@ -797,8 +844,24 @@
)
) {
if (Arr::get($requestData, 'media.type') == 'iframe_html') {
+ // The UI only offers the "HTML Code" embed to moderators
+ // (_VideoEmbeder.vue passes has_iframe="is_admin"). That is a hint, not a
+ // control, so the same rule is enforced here. Reaching this branch without
+ // the permission means the field was posted straight to the REST API, so
+ // the embed is dropped rather than stored.
+ if (!self::canEmbedRawHtml($requestData, $data, $existingFeed)) {
+ return [$data, $uplaodedDocs];
+ }
+
$mediaPreview = array_filter(Arr::get($requestData, 'media', []));
+ // Moderators are trusted to embed, not to bypass sanitization: the markup
+ // still goes through the same allowlist the oembed branch below uses.
+ if (!empty($mediaPreview['html'])) {
+ $mediaPreview['html'] = RemoteUrlParser::sanitizeOembedHtml($mediaPreview['html']);
+ $mediaPreview = array_filter($mediaPreview);
+ }
+
if (empty($mediaPreview['image']) && !empty($mediaPreview['html'])) {
$thumb = RemoteUrlParser::extractIframeThumbnail($mediaPreview['html']);
if ($thumb) {
--- a/fluent-community/app/Services/Helper.php
+++ b/fluent-community/app/Services/Helper.php
@@ -750,6 +750,29 @@
}
/**
+ * Sanitize embed markup held in a feed/comment meta array on read.
+ *
+ * meta.media_preview.html is rendered with v-html in _MediaPreview.vue, so it is
+ * sanitized on write. Doing it on read as well neutralizes rows that were stored
+ * before the write-side fix landed, and covers any writer reaching the meta via
+ * the fluent_community/feed/* filters. The emptiness check keeps this free for the
+ * vast majority of rows, which carry no embed markup at all.
+ *
+ * @param array $meta The unserialized meta array.
+ * @return array The meta array with any embed markup passed through the allowlist.
+ */
+ public static function sanitizeStoredMediaPreview($meta)
+ {
+ if (empty($meta['media_preview']['html'])) {
+ return $meta;
+ }
+
+ $meta['media_preview']['html'] = RemoteUrlParser::sanitizeOembedHtml($meta['media_preview']['html']);
+
+ return $meta;
+ }
+
+ /**
* Get a human-readable excerpt from content.
*
* @param string $content The content to extract from.
--- a/fluent-community/app/Services/TransStrings.php
+++ b/fluent-community/app/Services/TransStrings.php
@@ -1260,6 +1260,8 @@
'Placeholder image' => __('Placeholder image', 'fluent-community'),
'Placeholder text' => __('Placeholder text', 'fluent-community'),
'Play' => __('Play', 'fluent-community'),
+ 'Play Button Background Color' => __('Play Button Background Color', 'fluent-community'),
+ 'Play Button Color' => __('Play Button Color', 'fluent-community'),
'Play Embedded Videos With FluentPlayer' => __('Play Embedded Videos With FluentPlayer', 'fluent-community'),
'Play/Pause' => __('Play/Pause', 'fluent-community'),
'Playback Speed' => __('Playback Speed', 'fluent-community'),
--- a/fluent-community/app/Views/portal/header.php
+++ b/fluent-community/app/Views/portal/header.php
@@ -20,7 +20,7 @@
<div class="fcom_top_menu">
<div class="top_menu_left">
<div class="space_opener">
- <button aria-label="<?php echo esc_attr__('Open Menu', 'fluent-community'); ?>" class="fcom_space_opener_btn" aria-disabled="false" type="button">
+ <button aria-label="<?php echo esc_attr__('Open Menu', 'fluent-community'); ?>" class="fcom_space_opener_btn" aria-disabled="false" aria-expanded="false" type="button">
<span>
<i class="el-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="20" height="20" fill="currentColor">
--- a/fluent-community/app/Views/portal_page.php
+++ b/fluent-community/app/Views/portal_page.php
@@ -42,7 +42,7 @@
<link rel="canonical" href="<?php echo esc_url($canonical_url); ?>">
<?php endif; ?>
- <?php if(!empty($json_ld)): ?><script type="application/ld+json"><?php echo json_encode($json_ld); ?></script>
+ <?php if(!empty($json_ld)): ?><script type="application/ld+json"><?php echo wp_json_encode($json_ld, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT); ?></script>
<?php endif; ?>
<?php endif; ?>
--- a/fluent-community/fluent-community.php
+++ b/fluent-community/fluent-community.php
@@ -5,7 +5,7 @@
/**
* Plugin Name: FluentCommunity
* Description: The super-fast Community Plugin for WordPress
- * Version: 2.7.5
+ * Version: 2.7.7
* Author: WPManageNinja LLC
* Author URI: https://fluentcommunity.co
* Plugin URI: https://fluentcommunity.co
@@ -14,13 +14,13 @@
* Domain Path: /language
*/
-define('FLUENT_COMMUNITY_PLUGIN_VERSION', '2.7.5');
+define('FLUENT_COMMUNITY_PLUGIN_VERSION', '2.7.7');
define('FLUENT_COMMUNITY_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('FLUENT_COMMUNITY_PLUGIN_URL', plugin_dir_url(__FILE__));
define('FLUENT_COMMUNITY_DIR_FILE', __FILE__);
define('FLUENT_COMMUNITY_START_TIME', microtime(true));
define('FLUENT_COMMUNITY_DB_VERSION', '1.0.7');
-define('FLUENT_COMMUNITY_MIN_PRO_VERSION', '2.7.5');
+define('FLUENT_COMMUNITY_MIN_PRO_VERSION', '2.7.7');
if (!defined('FLUENTCRM_COMMUNITY_UPLOAD_DIR')) {
define('FLUENT_COMMUNITY_UPLOAD_DIR', 'fluent-community');
--- a/fluent-community/vendor/woocommerce/action-scheduler/index.php
+++ b/fluent-community/vendor/woocommerce/action-scheduler/index.php
@@ -0,0 +1,2 @@
+<?php
+// silent is golden
--- a/fluent-community/vendor/woocommerce/index.php
+++ b/fluent-community/vendor/woocommerce/index.php
@@ -0,0 +1,2 @@
+<?php
+// silent is golden