Skip to content

Commit

Permalink
Merge branch 'release/G23.kale.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed Nov 20, 2023
2 parents 5229cb6 + 99f1012 commit f9d5138
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tribe-common",
"version": "5.1.15",
"version": "5.1.15.1",
"repository": "[email protected]:the-events-calendar/tribe-common.git",
"_resourcepath": "src/resources",
"_domainPath": "lang",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
== Changelog ==

= [5.1.15.1] 2023-11-20 =

* Security - Ensure all password protected posts have their settings respected. [TCMN-167]

= [5.1.15] 2023-11-16 =

* Fix - Ensure the JavaScript module assets are properly getting the `type="module"` added on all scenarios [GTRIA-1112]
* Fix - Ensure the JavaScript module assets are properly getting the `type="module"` added on all scenarios [ET-1921]
* Language - 0 new strings added, 11 updated, 1 fuzzied, and 2 obsoleted

= [5.1.14] 2023-11-13 =
Expand Down
10 changes: 10 additions & 0 deletions src/Tribe/JSON_LD/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ public function get_data( $post = null, $args = [] ) {
return [];
}

// Double check that the user can read this post.
if ( ! current_user_can( 'read', $post->ID ) ) {
return [];
}

// Ensure this post is not password protected.
if ( post_password_required( $post ) ) {
return [];
}

$data = (object) [];

// We may need to prevent the context to be triggered
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Tribe__Main {
const OPTIONNAME = 'tribe_events_calendar_options';
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';

const VERSION = '5.1.15';
const VERSION = '5.1.15.1';

const FEED_URL = 'https://theeventscalendar.com/feed/';

Expand Down
2 changes: 1 addition & 1 deletion tribe-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Tribe Common
Description: An event settings framework for managing shared options
Version: 5.1.14
Version: 5.1.15.1
Author: The Events Calendar
Author URI: http://evnt.is/1x
Text Domain: tribe-common
Expand Down

0 comments on commit f9d5138

Please sign in to comment.