Page MenuHomePhorge

No OneTemporary

Size
3 KB
Referenced Files
None
Subscribers
None
diff --git a/RELEASE-NOTES-1.44 b/RELEASE-NOTES-1.44
index eab4bc13de4..87fa91d1a22 100644
--- a/RELEASE-NOTES-1.44
+++ b/RELEASE-NOTES-1.44
@@ -690,6 +690,10 @@ because of Phabricator reports.
- Xml::check() – use Html::check() instead
- Xml::radio() – use Html::radio() instead
- Xml::input() – use Html::input() instead
+ - Xml::inputLabel() – use Html::label() and Html::input() instead
+ - Xml::inputLabelSep() – use Html::label() and Html::input() instead
+ - Xml::checkLabel() – use Html::label() and Html::check() instead
+ - Xml::radioLabel() – use Html::label() and Html::radio() instead
* BlockUtils and BlockUtilsFactory is now deprecated. Use BlockTargetFactory
and CrossWikiBlockTargetFactory.
* RenameuserSQL::rename has been deprecated and should be replaced with
diff --git a/includes/xml/Xml.php b/includes/xml/Xml.php
index 7c195157918..b4ee29673fe 100644
--- a/includes/xml/Xml.php
+++ b/includes/xml/Xml.php
@@ -429,11 +429,13 @@ class Xml {
* @param array $attribs Other attributes
* @return string HTML
*
- * @deprecated since 1.42, use {@see Html::input} and {@see Html::label} instead
+ * @deprecated since 1.42, use {@see Html::input} and {@see Html::label} instead; emitting warnings since 1.44
*/
public static function inputLabel( $label, $name, $id, $size = false,
$value = false, $attribs = []
) {
+ wfDeprecated( __METHOD__, '1.42' );
+
[ $label, $input ] = self::inputLabelSep( $label, $name, $id, $size, $value, $attribs );
return $label . "\u{00A0}" . $input;
}
@@ -449,11 +451,13 @@ class Xml {
* @param array $attribs
* @return array
*
- * @deprecated since 1.42, use {@see Html::input} and {@see Html::label} instead
+ * @deprecated since 1.42, use {@see Html::input} and {@see Html::label} instead; emitting warnings since 1.44
*/
public static function inputLabelSep( $label, $name, $id, $size = false,
$value = false, $attribs = []
) {
+ wfDeprecated( __METHOD__, '1.42' );
+
return [
self::label( $label, $id, $attribs ),
self::input( $name, $size, $value, [ 'id' => $id ] + $attribs )
@@ -470,9 +474,11 @@ class Xml {
* @param array $attribs
* @return string HTML
*
- * @deprecated since 1.42, use {@see Html::check} and {@see Html::label} instead
+ * @deprecated since 1.42, use {@see Html::check} and {@see Html::label} instead; emitting warnings since 1.44
*/
public static function checkLabel( $label, $name, $id, $checked = false, $attribs = [] ) {
+ wfDeprecated( __METHOD__, '1.42' );
+
return self::check( $name, $checked, [ 'id' => $id ] + $attribs ) .
"\u{00A0}" .
self::label( $label, $id, $attribs );
@@ -489,11 +495,13 @@ class Xml {
* @param array $attribs
* @return string HTML
*
- * @deprecated since 1.42, use {@see Html::radio} and {@see Html::label} instead
+ * @deprecated since 1.42, use {@see Html::radio} and {@see Html::label} instead; emitting warnings since 1.44
*/
public static function radioLabel( $label, $name, $value, $id,
$checked = false, $attribs = []
) {
+ wfDeprecated( __METHOD__, '1.42' );
+
return self::radio( $name, $value, $checked, [ 'id' => $id ] + $attribs ) .
"\u{00A0}" .
self::label( $label, $id, $attribs );

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (1 d, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227714
Default Alt Text
(3 KB)

Event Timeline