-
Improvement
-
Resolution: Fixed
-
Minor
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
MDL-82427-main -
This change updates the Filter API to modernise it and add support for standard Moodle class autoloading. This includes changes to the Filter Plugins to also support class autoloading.
For developers of filter plugins the following changes are required:
- Move the class located in filter/[yourfilter]/filter.php to filter/[filter]/classes/text_filter.php and rename the class to text_filter.
If your codebase is used in Moodle 4.5, as well as earlier versions, you will also need to:
- Create a file in the 'old' location (filter/[filter]/filter.php) with the following content:
class_alias(\filter_[filter]\text_filter::class, \filter_[filter]::class);
|
This will ensure that the plugin class is available at both the old and new locations.
- caused a regression
-
MDL-82688 Attempt to read property "instanceid" on bool
- Closed
-
MDL-82702 filter_emailprotect calls preg_replace_callback with function that doesn't exist.
- Closed
-
MDL-83043 Missing filter_algebra_image() after MDL-82427
- Closed
- has a non-specific relationship to
-
MDL-82706 Bring back the removed filter.php files
- Closed
- has been marked as being related by
-
MDL-79717 Duplicate array key in various tests
- Closed
- is blocked by
-
MDL-82445 filter_tidy breaks page locale
- Closed
- Testing discovered
-
MDL-82444 The "Tidy" text filter doesn't advertise the fact it requires an extension
- Closed
- links to