Skip to content

Commit 81c675c

Browse files
authored
Merge pull request #5883 from Automattic/prepare/release
Prepare 4.7.0 release
2 parents 41a5aa4 + 7fb3766 commit 81c675c

16 files changed

+1058
-910
lines changed

changelog.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
*** Changelog ***
22

3+
2022-10-11 - version 4.7.0
4+
* New: Learning Mode version 2
5+
* Do not show the exceprt in post content if it exists in the template [#5871](https://github.com/Automattic/sensei/pull/5871)
6+
* Fix content padding on mobile [#5863](https://github.com/Automattic/sensei/pull/5863)
7+
* Add 'Completed' and 'Next Lesson' button to Lesson Actions [#5784](https://github.com/Automattic/sensei/pull/5784)
8+
* Handle logged out users for video lessons [#5851](https://github.com/Automattic/sensei/pull/5851)
9+
* Remove empty style block [#5860](https://github.com/Automattic/sensei/pull/5860)
10+
* Fix lesson complete overlay width [#5844](https://github.com/Automattic/sensei/pull/5844)
11+
* Improve LM theme compatibilty [#5846](https://github.com/Automattic/sensei/pull/5846)
12+
* Fix message sent notice [#5843](https://github.com/Automattic/sensei/pull/5843)
13+
* Replace customize links [#5842](https://github.com/Automattic/sensei/pull/5842)
14+
* Add featured video to lesson patterns, update pattern looks [#5789](https://github.com/Automattic/sensei/pull/5789)
15+
* Add some usage tracking data for learning mode [#5760](https://github.com/Automattic/sensei/pull/5760)
16+
* Fix non-video lessons for Video templates. [#5825](https://github.com/Automattic/sensei/pull/5825)
17+
* Fix featured video sizing [#5812](https://github.com/Automattic/sensei/pull/5812)
18+
* Update lesson properties block to use with LM templates [#5721](https://github.com/Automattic/sensei/pull/5721)
19+
* Learning Mode - Add support for Featured Video block transformations. [#5829](https://github.com/Automattic/sensei/pull/5829)
20+
* Learning Mode - Keep Featured Video block always on top [#5819](https://github.com/Automattic/sensei/pull/5819)
21+
* Fix template selector in lesson editor [#5818](https://github.com/Automattic/sensei/pull/5818)
22+
* Handle logged out users for video lessons [#5851](https://github.com/Automattic/sensei/pull/5851)
23+
* Remove empty style block [#5860](https://github.com/Automattic/sensei/pull/5860)
24+
* Fix lesson complete overlay width [#5844](https://github.com/Automattic/sensei/pull/5844)
25+
* Tweak sidebar CSS [#5759](https://github.com/Automattic/sensei/pull/5759)
26+
* Rename LM color variables [#5758](https://github.com/Automattic/sensei/pull/5758)
27+
* Use global styles colors in Learning Mode [#5563](https://github.com/Automattic/sensei/pull/5563)
28+
* Tweak default template [#5791](https://github.com/Automattic/sensei/pull/5791)
29+
* Enable lm for new users [#5788](https://github.com/Automattic/sensei/pull/5788)
30+
* Learning Mode - Show Sensei notices inside LM notices. [#5746](https://github.com/Automattic/sensei/pull/5746)
31+
* Add script to resize lesson video [#5781](https://github.com/Automattic/sensei/pull/5781)
32+
* Fixes for lesson video rendering [#5779](https://github.com/Automattic/sensei/pull/5779)
33+
* Add Featured Video Thumbnail creation [#5726](https://github.com/Automattic/sensei/pull/5726)
34+
* Fix: Redirect to message after logging in from message screen. [#5357](https://github.com/Automattic/sensei/pull/5357)
35+
* Add Lesson Video Block [#5720](https://github.com/Automattic/sensei/pull/5720)
36+
* Featured video method [#5701](https://github.com/Automattic/sensei/pull/5701)
37+
* Limit template blocks to site editor, widget editor and template editing [#5723](https://github.com/Automattic/sensei/pull/5723)
38+
* Fix template selection [#5724](https://github.com/Automattic/sensei/pull/5724)
39+
* Add embed css into lm templates [#5695](https://github.com/Automattic/sensei/pull/5695)
40+
* Learning Mode - Support multiple custom block templates for a single post type. [#5662](https://github.com/Automattic/sensei/pull/5662)
41+
* Fix lesson block template loading [#5667](https://github.com/Automattic/sensei/pull/5667)
42+
* Add: Refactor course category color strategy [#5610](https://github.com/Automattic/sensei/pull/5610)
43+
* Add: Add enrolment notice if course is unpublished [#5344](https://github.com/Automattic/sensei/pull/5344)
44+
* Add: Fix comparison that was not properly checking for option [#5678](https://github.com/Automattic/sensei/pull/5678)
45+
* Add: Add persistence to the Sensei Notices API, using user metas [#5569](https://github.com/Automattic/sensei/pull/5569)
46+
* Fix: Remove the check so that meta data can be saved again [#5830](https://github.com/Automattic/sensei/pull/5830)
47+
* Fix: Prevent modules to be linked in learning mode [#5809](https://github.com/Automattic/sensei/pull/5809)
48+
* Fix: Fix draft lessons not getting duplicated with course [#5764](https://github.com/Automattic/sensei/pull/5558com/Automattic/sensei/pull/5764)
49+
* Fix: Move blocks title, description, keywords to block.json and fix localization [#5782](https://github.com/Automattic/sensei/pull/5558com/Automattic/sensei/pull/5782)
50+
351
2022-09-26 - version 4.6.4
452
* Add: Show Course Categories preview [#5513](https://github.com/Automattic/sensei/pull/5513)
553
* Add: Learning Mode - Add a prerequisite notice to the quiz page. [#5476](https://github.com/Automattic/sensei/pull/5476)

includes/blocks/course-theme/class-lesson-properties.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* File containing the Lesson_Properties class.
44
*
55
* @package sensei
6-
* @since $$next-version$$
6+
* @since 4.7.0
77
*/
88

99
namespace Sensei\Blocks\Course_Theme;

includes/class-sensei-notices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function add_notice( string $content, string $type = 'alert', string $key
9191
/**
9292
* Allows to modify a sensei notice that will be shown to the user.
9393
*
94-
* @since $$next-version$$
94+
* @since 4.7.0
9595
* @hook sensei_notice
9696
*
9797
* @param array $notice {

includes/class-sensei-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function init_fields() {
467467
'description' => __( 'Show an immersive and distraction-free view for lessons and quizzes.', 'sensei-lms' ),
468468
'form' => 'render_learning_mode_setting',
469469
'type' => 'checkbox',
470-
'default' => \Sensei()->install_version && version_compare( \Sensei()->install_version, '$$next-version$$', '>=' ),
470+
'default' => \Sensei()->install_version && version_compare( \Sensei()->install_version, '4.7.0', '>=' ),
471471
'section' => 'appearance-settings',
472472
);
473473

includes/class-sensei-utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2659,7 +2659,7 @@ public static function render_video_embed( $url ) {
26592659
/**
26602660
* Gets the HTML content from the Featured Video for a lesson.
26612661
*
2662-
* @since $$next-version$$
2662+
* @since 4.7.0
26632663
*
26642664
* @param string $post_id the post ID.
26652665
*

includes/class-sensei.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Sensei_Main {
3636
* Main reference to the plugin's version when it was installed.
3737
* Or false if the install version is not available.
3838
*
39-
* @since $$next-version$$
39+
* @since 4.7.0
4040
* @var string|false
4141
*/
4242
public $install_version;

includes/course-theme/class-sensei-course-theme-option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static function should_override_theme() {
147147
*
148148
* @since 4.0.2
149149
* @hook sensei_course_learning_mode_theme_override_enabled
150-
* @deprecated $$next-version$$
150+
* @deprecated 4.7.0
151151
*
152152
* @param {bool} $enabled True if the learning mode theme override is enabled.
153153
*

includes/course-theme/class-sensei-course-theme-styles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* File containing Sensei_Course_Theme_Styles class.
44
*
55
* @package sensei-lms
6-
* @since $$next-version$$
6+
* @since 4.7.0
77
*/
88

99
if ( ! defined( 'ABSPATH' ) ) {
@@ -13,7 +13,7 @@
1313
/**
1414
* Add support for global styles colors.
1515
*
16-
* @since $$next-version$$
16+
* @since 4.7.0
1717
*/
1818
class Sensei_Course_Theme_Styles {
1919

includes/course-theme/class-sensei-course-theme-template-selection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @author Automattic
66
* @package Sensei
7-
* @version $$next-version$$
7+
* @version 4.7.0
88
*/
99

1010
/**
@@ -158,7 +158,7 @@ public static function get_templates(): array {
158158
/**
159159
* Filters the Learning Mode block templates list. Allows to add additional ones too.
160160
*
161-
* @since $$next-version$$
161+
* @since 4.7.0
162162
* @hook sensei_learning_mode_block_templates
163163
*
164164
* @param Sensei_Course_Theme_Template[] $templates {

includes/course-theme/class-sensei-course-theme-template.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,52 @@
44
*
55
* @author Automattic
66
* @package Sensei
7-
* @version $$next-version$$
7+
* @version 4.7.0
88
*/
99

1010
/**
1111
* Class representing a Learning Mode block template.
1212
*
13-
* @since $$next-version$$
13+
* @since 4.7.0
1414
*/
1515
class Sensei_Course_Theme_Template {
1616

1717
/**
1818
* The unique name of the block template.
1919
*
2020
* @var string
21-
* @since $$next-version$$
21+
* @since 4.7.0
2222
*/
2323
public $name;
2424

2525
/**
2626
* The title of the block template.
2727
*
2828
* @var string
29-
* @since $$next-version$$
29+
* @since 4.7.0
3030
*/
3131
public $title;
3232

3333
/**
3434
* The version number of the block template. For example "1.0.0".
3535
*
3636
* @var string
37-
* @since $$next-version$$
37+
* @since 4.7.0
3838
*/
3939
public $version;
4040

4141
/**
4242
* An array of urls of styles that needs to be enqueued with this block template.
4343
*
4444
* @var string[]
45-
* @since $$next-version$$
45+
* @since 4.7.0
4646
*/
4747
public $styles;
4848
/**
4949
* An array of urls of scripts that needs to be enqueued with this block template.
5050
*
5151
* @var string[]
52-
* @since $$next-version$$
52+
* @since 4.7.0
5353
*/
5454
public $scripts;
5555

@@ -60,7 +60,7 @@ class Sensei_Course_Theme_Template {
6060
* @type string $full The url to the full size screenshot of the block template.
6161
* @type string $thumbnail The url to the thumbnail size screenshot of the block template.
6262
* }
63-
* @since $$next-version$$
63+
* @since 4.7.0
6464
*/
6565
public $screenshots;
6666

0 commit comments

Comments
 (0)