Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F585066
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/RELEASE-NOTES-1.44 b/RELEASE-NOTES-1.44
index bb30939578c..d6a51b991eb 100644
--- a/RELEASE-NOTES-1.44
+++ b/RELEASE-NOTES-1.44
@@ -134,6 +134,7 @@ For notes on 1.43.x and older releases, see HISTORY.
to avoid having to rely on the global context.
* You can use LoggerFactory::getContext() to add extra context to all PSR-3
log events.
+* New helper methods Html::addClass() and Html::expandClassList().
* …
=== External library changes in 1.44 ===
diff --git a/includes/Html/Html.php b/includes/Html/Html.php
index ef32e655bfa..89f031d1297 100644
--- a/includes/Html/Html.php
+++ b/includes/Html/Html.php
@@ -141,6 +141,7 @@ class Html {
* @param array|string|null &$classes Class list to modify in-place
* @param string $class Class to add
* @phan-assert non-empty-array $classes
+ * @since 1.44
*/
public static function addClass( &$classes, string $class ): void {
$classes = (array)$classes;
@@ -451,6 +452,7 @@ class Html {
*
* @param array|string $classes
* @return string
+ * @since 1.44
*/
public static function expandClassList( $classes ): string {
// Convert into correct array. Array can contain space-separated
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (8 h, 48 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227505
Default Alt Text
(1 KB)
Attached To
Mode
rMW mediawiki
Attached
Detach File
Event Timeline
Log In to Comment