Skip to content

Commit

Permalink
Merge pull request #5883 from Automattic/prepare/release
Browse files Browse the repository at this point in the history
Prepare 4.7.0 release
  • Loading branch information
gikaragia authored Oct 11, 2022
2 parents 41a5aa4 + 7fb3766 commit 81c675c
Show file tree
Hide file tree
Showing 16 changed files with 1,058 additions and 910 deletions.
48 changes: 48 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
*** Changelog ***

2022-10-11 - version 4.7.0
* New: Learning Mode version 2
* Do not show the exceprt in post content if it exists in the template [#5871](https://github.com/Automattic/sensei/pull/5871)
* Fix content padding on mobile [#5863](https://github.com/Automattic/sensei/pull/5863)
* Add 'Completed' and 'Next Lesson' button to Lesson Actions [#5784](https://github.com/Automattic/sensei/pull/5784)
* Handle logged out users for video lessons [#5851](https://github.com/Automattic/sensei/pull/5851)
* Remove empty style block [#5860](https://github.com/Automattic/sensei/pull/5860)
* Fix lesson complete overlay width [#5844](https://github.com/Automattic/sensei/pull/5844)
* Improve LM theme compatibilty [#5846](https://github.com/Automattic/sensei/pull/5846)
* Fix message sent notice [#5843](https://github.com/Automattic/sensei/pull/5843)
* Replace customize links [#5842](https://github.com/Automattic/sensei/pull/5842)
* Add featured video to lesson patterns, update pattern looks [#5789](https://github.com/Automattic/sensei/pull/5789)
* Add some usage tracking data for learning mode [#5760](https://github.com/Automattic/sensei/pull/5760)
* Fix non-video lessons for Video templates. [#5825](https://github.com/Automattic/sensei/pull/5825)
* Fix featured video sizing [#5812](https://github.com/Automattic/sensei/pull/5812)
* Update lesson properties block to use with LM templates [#5721](https://github.com/Automattic/sensei/pull/5721)
* Learning Mode - Add support for Featured Video block transformations. [#5829](https://github.com/Automattic/sensei/pull/5829)
* Learning Mode - Keep Featured Video block always on top [#5819](https://github.com/Automattic/sensei/pull/5819)
* Fix template selector in lesson editor [#5818](https://github.com/Automattic/sensei/pull/5818)
* Handle logged out users for video lessons [#5851](https://github.com/Automattic/sensei/pull/5851)
* Remove empty style block [#5860](https://github.com/Automattic/sensei/pull/5860)
* Fix lesson complete overlay width [#5844](https://github.com/Automattic/sensei/pull/5844)
* Tweak sidebar CSS [#5759](https://github.com/Automattic/sensei/pull/5759)
* Rename LM color variables [#5758](https://github.com/Automattic/sensei/pull/5758)
* Use global styles colors in Learning Mode [#5563](https://github.com/Automattic/sensei/pull/5563)
* Tweak default template [#5791](https://github.com/Automattic/sensei/pull/5791)
* Enable lm for new users [#5788](https://github.com/Automattic/sensei/pull/5788)
* Learning Mode - Show Sensei notices inside LM notices. [#5746](https://github.com/Automattic/sensei/pull/5746)
* Add script to resize lesson video [#5781](https://github.com/Automattic/sensei/pull/5781)
* Fixes for lesson video rendering [#5779](https://github.com/Automattic/sensei/pull/5779)
* Add Featured Video Thumbnail creation [#5726](https://github.com/Automattic/sensei/pull/5726)
* Fix: Redirect to message after logging in from message screen. [#5357](https://github.com/Automattic/sensei/pull/5357)
* Add Lesson Video Block [#5720](https://github.com/Automattic/sensei/pull/5720)
* Featured video method [#5701](https://github.com/Automattic/sensei/pull/5701)
* Limit template blocks to site editor, widget editor and template editing [#5723](https://github.com/Automattic/sensei/pull/5723)
* Fix template selection [#5724](https://github.com/Automattic/sensei/pull/5724)
* Add embed css into lm templates [#5695](https://github.com/Automattic/sensei/pull/5695)
* Learning Mode - Support multiple custom block templates for a single post type. [#5662](https://github.com/Automattic/sensei/pull/5662)
* Fix lesson block template loading [#5667](https://github.com/Automattic/sensei/pull/5667)
* Add: Refactor course category color strategy [#5610](https://github.com/Automattic/sensei/pull/5610)
* Add: Add enrolment notice if course is unpublished [#5344](https://github.com/Automattic/sensei/pull/5344)
* Add: Fix comparison that was not properly checking for option [#5678](https://github.com/Automattic/sensei/pull/5678)
* Add: Add persistence to the Sensei Notices API, using user metas [#5569](https://github.com/Automattic/sensei/pull/5569)
* Fix: Remove the check so that meta data can be saved again [#5830](https://github.com/Automattic/sensei/pull/5830)
* Fix: Prevent modules to be linked in learning mode [#5809](https://github.com/Automattic/sensei/pull/5809)
* Fix: Fix draft lessons not getting duplicated with course [#5764](https://github.com/Automattic/sensei/pull/5558com/Automattic/sensei/pull/5764)
* Fix: Move blocks title, description, keywords to block.json and fix localization [#5782](https://github.com/Automattic/sensei/pull/5558com/Automattic/sensei/pull/5782)

2022-09-26 - version 4.6.4
* Add: Show Course Categories preview [#5513](https://github.com/Automattic/sensei/pull/5513)
* Add: Learning Mode - Add a prerequisite notice to the quiz page. [#5476](https://github.com/Automattic/sensei/pull/5476)
Expand Down
2 changes: 1 addition & 1 deletion includes/blocks/course-theme/class-lesson-properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* File containing the Lesson_Properties class.
*
* @package sensei
* @since $$next-version$$
* @since 4.7.0
*/

namespace Sensei\Blocks\Course_Theme;
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function add_notice( string $content, string $type = 'alert', string $key
/**
* Allows to modify a sensei notice that will be shown to the user.
*
* @since $$next-version$$
* @since 4.7.0
* @hook sensei_notice
*
* @param array $notice {
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public function init_fields() {
'description' => __( 'Show an immersive and distraction-free view for lessons and quizzes.', 'sensei-lms' ),
'form' => 'render_learning_mode_setting',
'type' => 'checkbox',
'default' => \Sensei()->install_version && version_compare( \Sensei()->install_version, '$$next-version$$', '>=' ),
'default' => \Sensei()->install_version && version_compare( \Sensei()->install_version, '4.7.0', '>=' ),
'section' => 'appearance-settings',
);

Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2659,7 +2659,7 @@ public static function render_video_embed( $url ) {
/**
* Gets the HTML content from the Featured Video for a lesson.
*
* @since $$next-version$$
* @since 4.7.0
*
* @param string $post_id the post ID.
*
Expand Down
2 changes: 1 addition & 1 deletion includes/class-sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Sensei_Main {
* Main reference to the plugin's version when it was installed.
* Or false if the install version is not available.
*
* @since $$next-version$$
* @since 4.7.0
* @var string|false
*/
public $install_version;
Expand Down
2 changes: 1 addition & 1 deletion includes/course-theme/class-sensei-course-theme-option.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static function should_override_theme() {
*
* @since 4.0.2
* @hook sensei_course_learning_mode_theme_override_enabled
* @deprecated $$next-version$$
* @deprecated 4.7.0
*
* @param {bool} $enabled True if the learning mode theme override is enabled.
*
Expand Down
4 changes: 2 additions & 2 deletions includes/course-theme/class-sensei-course-theme-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* File containing Sensei_Course_Theme_Styles class.
*
* @package sensei-lms
* @since $$next-version$$
* @since 4.7.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -13,7 +13,7 @@
/**
* Add support for global styles colors.
*
* @since $$next-version$$
* @since 4.7.0
*/
class Sensei_Course_Theme_Styles {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @author Automattic
* @package Sensei
* @version $$next-version$$
* @version 4.7.0
*/

/**
Expand Down Expand Up @@ -158,7 +158,7 @@ public static function get_templates(): array {
/**
* Filters the Learning Mode block templates list. Allows to add additional ones too.
*
* @since $$next-version$$
* @since 4.7.0
* @hook sensei_learning_mode_block_templates
*
* @param Sensei_Course_Theme_Template[] $templates {
Expand Down
16 changes: 8 additions & 8 deletions includes/course-theme/class-sensei-course-theme-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,52 @@
*
* @author Automattic
* @package Sensei
* @version $$next-version$$
* @version 4.7.0
*/

/**
* Class representing a Learning Mode block template.
*
* @since $$next-version$$
* @since 4.7.0
*/
class Sensei_Course_Theme_Template {

/**
* The unique name of the block template.
*
* @var string
* @since $$next-version$$
* @since 4.7.0
*/
public $name;

/**
* The title of the block template.
*
* @var string
* @since $$next-version$$
* @since 4.7.0
*/
public $title;

/**
* The version number of the block template. For example "1.0.0".
*
* @var string
* @since $$next-version$$
* @since 4.7.0
*/
public $version;

/**
* An array of urls of styles that needs to be enqueued with this block template.
*
* @var string[]
* @since $$next-version$$
* @since 4.7.0
*/
public $styles;
/**
* An array of urls of scripts that needs to be enqueued with this block template.
*
* @var string[]
* @since $$next-version$$
* @since 4.7.0
*/
public $scripts;

Expand All @@ -60,7 +60,7 @@ class Sensei_Course_Theme_Template {
* @type string $full The url to the full size screenshot of the block template.
* @type string $thumbnail The url to the thumbnail size screenshot of the block template.
* }
* @since $$next-version$$
* @since 4.7.0
*/
public $screenshots;

Expand Down
6 changes: 3 additions & 3 deletions includes/course-theme/class-sensei-course-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function init() {
* @return bool
*/
public function is_active() {
_deprecated_function( __METHOD__, '$$next-version$$' );
_deprecated_function( __METHOD__, '4.7.0' );

return self::THEME_NAME === get_stylesheet();
}
Expand Down Expand Up @@ -543,7 +543,7 @@ public function add_lesson_video_to_content( $content ) {
/**
* Prevent modules to be linked in learning mode.
*
* @since $$next-version$$
* @since 4.7.0
*
* @param bool $do_link_to_module True if module should be linked to.
*
Expand All @@ -560,7 +560,7 @@ public function prevent_link_to_module( bool $do_link_to_module ): bool {
/**
* Redirect all module pages to the first module lesson.
*
* @since $$next-version$$
* @since 4.7.0
*/
public function redirect_modules_to_first_lesson(): void {
if ( ! Sensei_Course_Theme_Option::should_use_learning_mode() || ! is_tax( 'module' ) ) {
Expand Down
Loading

0 comments on commit 81c675c

Please sign in to comment.