Skip to content

Commit

Permalink
Merge pull request #7096 from Automattic/release/4.16.1
Browse files Browse the repository at this point in the history
Release 4.16.1
  • Loading branch information
donnapep committed Aug 15, 2023
2 parents 8f6ecd0 + 9269be7 commit 02badcf
Show file tree
Hide file tree
Showing 46 changed files with 321 additions and 296 deletions.
20 changes: 18 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
*** Changelog ***

## 4.16.0 - 2023-07-13
## 4.16.1 - 2023-08-15
### Added
- Add CC/BCC fields for Sensei emails [#7014](https://github.com/Automattic/sensei/pull/7014)

### Changed
- Update the `sensei_results_links` filter to include the learner's user ID when displaying public profiles and to display results links publicly [#7048](https://github.com/Automattic/sensei/pull/7048)

### Fixed
- Fix "View Results" button not working [#7058](https://github.com/Automattic/sensei/pull/7058)
- Fix custom button colors not being applied in Learning Mode [#7080](https://github.com/Automattic/sensei/pull/7080)
- Fix duplicate comment sections under lesson in FSE themes [#7044](https://github.com/Automattic/sensei/pull/7044)
- Fix lessons not using the selected template in FSE themes [#7045](https://github.com/Automattic/sensei/pull/7045)
- Fix error when the module author user is deleted [#7082](https://github.com/Automattic/sensei/pull/7082)
- Fix lessons not being saved when creating a course on the latest Gutenberg version [#7091](https://github.com/Automattic/sensei/pull/7091)
- Fix lesson styling in editor on WordPress 6.3 or when Gutenberg enabled [#7054](https://github.com/Automattic/sensei/pull/7054)
- Fix PHP 8.1 deprecation notice on Students page [#7038](https://github.com/Automattic/sensei/pull/7038)
- Fix `strpos`and `str_replace` deprecation messages in PHP 8.1 and 8.2 [#7028](https://github.com/Automattic/sensei/pull/7028)

## 4.16.0 - 2023-07-13
### Added
- Enable to select how to generate lessons when a course is created [#6999](https://github.com/Automattic/sensei/pull/6999)

Expand All @@ -14,7 +31,6 @@
- Fix PHP 8.1 autovivification of falsy value deprecation message [#7015](https://github.com/Automattic/sensei/pull/7015)
- Removed Beta label from Editor Menu [#6989](https://github.com/Automattic/sensei/pull/6989)


## 4.15.1 - 2023-06-22
### Added
- Add Enrolled and Completion columns on the reports course page. [#6966](https://github.com/Automattic/sensei/pull/6966)
Expand Down
4 changes: 0 additions & 4 deletions changelog/add-data-migrator

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-email-cc-bcc

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-profile-links-filter

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-duplicate-comment-section-in-fse-themes

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-error-when-module-author-does-not-exist

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/fix-grades-duplicates

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-learning-mode-template-on-wpcom

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-lesson-button-colors

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-lesson-not-using-set-template-in-fse-themes

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-lessons-not-saved-when-creating-course

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-php81-deprecation-notice

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-view-results-button-not-working

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-wp-core-deprecation-messages

This file was deleted.

2 changes: 1 addition & 1 deletion includes/class-sensei-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2816,7 +2816,7 @@ public static function get_target_page_post_id_for_continue_url( $course_id, $us
/**
* Check if the current theme supports Full Site Editing (FSE).
*
* @since $$next-version$$
* @since 4.16.1
*
* @return bool True if FSE is supported, false otherwise.
*/
Expand Down
12 changes: 6 additions & 6 deletions includes/class-sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,10 @@ public function install() {
*
* @since 2.0.0
*
* @deprecated $$next-version$$
* @deprecated 4.16.1
*/
public function update() {
_deprecated_function( __METHOD__, '$$next-version$$' );
_deprecated_function( __METHOD__, '4.16.1' );

$current_version = get_option( 'sensei-version' );
$is_new_install = ! $current_version && ! $this->course_exists();
Expand All @@ -821,12 +821,12 @@ public function update() {
/**
* Helper function to check to see if any courses exist in the database.
*
* @deprecated $$next-version$$
* @deprecated 4.16.1
*
* @return bool
*/
private function course_exists(): bool {
_deprecated_function( __METHOD__, '$$next-version$$' );
_deprecated_function( __METHOD__, '4.16.1' );

global $wpdb;

Expand All @@ -844,10 +844,10 @@ private function course_exists(): bool {
* @param boolean $is_new_install Is this a new install.
* @return void
*
* @deprecated $$next-version$$
* @deprecated 4.16.1
*/
private function register_plugin_version( $is_new_install ) {
_deprecated_function( __METHOD__, '$$next-version$$' );
_deprecated_function( __METHOD__, '4.16.1' );

if ( isset( $this->version ) ) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ private function should_hide_lesson_template( $post_type ) {
* @param array $current_templates The block templates.
* @param string $theme_name The theme name.
*
* @since $$next-version$$
* @since 4.16.1
*
* @internal
*
Expand Down
2 changes: 1 addition & 1 deletion includes/internal/emails/class-email-settings-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private function form_field_hidden( $key, $value ) {
* Add the Reply To email address setting field.
*
* @since 4.12.0
* @deprecated $$next-version$$ Moved to Sensei_Settings::init_fields.
* @deprecated 4.16.1 Moved to Sensei_Settings::init_fields.
*
* @access private
*
Expand Down
28 changes: 14 additions & 14 deletions includes/internal/installer/class-installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* File containing the class \Sensei\Internal\Installer\Installer.
*
* @package sensei
* @since $$next-version$$
* @since 4.16.1
*/

namespace Sensei\Internal\Installer;
Expand All @@ -19,7 +19,7 @@
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
class Installer {

Expand All @@ -29,15 +29,15 @@ class Installer {
/**
* Instance of the class.
*
* @since $$next-version$$
* @since 4.16.1
* @var self
*/
private static $instance;

/**
* The database schema class.
*
* @since $$next-version$$
* @since 4.16.1
* @var Schema
*/
private $schema;
Expand All @@ -60,7 +60,7 @@ class Installer {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*
* @param Schema $schema Schema migration object.
* @param Updates_Factory $updates_factory Updates factory object.
Expand All @@ -77,7 +77,7 @@ public function __construct( Schema $schema, Updates_Factory $updates_factory, ?
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*
* @param string|null $version Current Sensei version.
* @return self
Expand All @@ -95,7 +95,7 @@ public static function instance( ?string $version = null ): self {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
public function init() {
register_activation_hook( SENSEI_LMS_PLUGIN_FILE, [ $this, 'install' ] );
Expand All @@ -110,7 +110,7 @@ public function init() {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
public function install() {
if (
Expand All @@ -130,7 +130,7 @@ public function install() {
/**
* Fires after the installation completes.
*
* @since $$next-version$$
* @since 4.16.1
*/
do_action( 'sensei_lms_installed' );
}
Expand All @@ -140,7 +140,7 @@ public function install() {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
public function update(): void {
$current_version = get_option( self::SENSEI_VERSION_OPTION_NAME );
Expand All @@ -156,7 +156,7 @@ public function update(): void {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*
* @return Schema
*/
Expand All @@ -167,7 +167,7 @@ public function get_schema(): Schema {
/**
* Check if the installer is running.
*
* @since $$next-version$$
* @since 4.16.1
*
* @return bool
*/
Expand All @@ -178,7 +178,7 @@ private function is_installing(): bool {
/**
* Determine if the installer needs to be run by checking the plugin's version.
*
* @since $$next-version$$
* @since 4.16.1
*
* @return bool
*/
Expand All @@ -191,7 +191,7 @@ private function requires_install(): bool {
/**
* Update the plugin's version to the current one.
*
* @since $$next-version$$
* @since 4.16.1
*
* @param bool $is_new_install Whether this is a new install.
*/
Expand Down
8 changes: 4 additions & 4 deletions includes/internal/installer/class-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
* File containing the interface \Sensei\Internal\Installer\Migration.
*
* @package sensei
* @since $$next-version$$
* @since 4.16.1
*/

namespace Sensei\Internal\Installer;

/**
* Migration interface.
*
* @since $$next-version$$
* @since 4.16.1
*/
interface Migration {
/**
* The targeted plugin version.
*
* @since $$next-version$$
* @since 4.16.1
*
* @return string
*/
Expand All @@ -26,7 +26,7 @@ public function target_version(): string;
/**
* Run the migration.
*
* @since $$next-version$$
* @since 4.16.1
*
* @param bool $dry_run Whether to run the migration in dry-run mode.
*/
Expand Down
14 changes: 7 additions & 7 deletions includes/internal/installer/class-schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* File containing the class \Sensei\Internal\Installer\Schema.
*
* @package sensei
* @since $$next-version$$
* @since 4.16.1
*/

namespace Sensei\Internal\Installer;
Expand All @@ -13,15 +13,15 @@
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
class Schema {
/*
* Indexes have a maximum size of 767 bytes. Historically, we haven't need to be concerned about that.
* As of WP 4.2, however, they moved to utf8mb4, which uses 4 bytes per character. This means that an index which
* used to have room for floor(767/3) = 255 characters, now only has room for floor(767/4) = 191 characters.
*
* @since $$next-version$$
* @since 4.16.1
* @var int
*/
const MAX_INDEX_LENGTH = 191;
Expand All @@ -35,7 +35,7 @@ class Schema {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
public function create_tables() {
global $wpdb;
Expand All @@ -62,7 +62,7 @@ public function create_tables() {
* @internal
*
* @see https://codex.wordpress.org/Creating_Tables_with_Plugins#Creating_or_Updating_the_Table
* @since $$next-version$$
* @since 4.16.1
*
* @return string The schema query.
*/
Expand Down Expand Up @@ -144,7 +144,7 @@ private function get_query(): string {
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*
* @return array Database tables.
*/
Expand All @@ -164,7 +164,7 @@ public function get_tables(): array {
*
* If plugins need to add new tables, they can inject them here.
*
* @since $$next-version$$
* @since 4.16.1
*
* @param array $tables An array of Sensei specific database table names.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/internal/installer/class-updates-factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @internal
*
* @since $$next-version$$
* @since 4.16.1
*/
class Updates_Factory {
/**
Expand Down
Loading

0 comments on commit 02badcf

Please sign in to comment.