diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2025-04-04 10:44:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2025-04-04 10:44:36 +0000 |
commit | acb43690d7b435c7a5adae82b261301c71095e99 (patch) | |
tree | 7700b54ca16bd16b79daffc25bba98131b978f46 | |
parent | b696f19d3e85cf57c1b8475b571cb024c00588fd (diff) | |
parent | 2f7e0840bd738407b81ae41a713b7c8dee7fc249 (diff) | |
download | mediawikicore-acb43690d7b435c7a5adae82b261301c71095e99.tar.gz mediawikicore-acb43690d7b435c7a5adae82b261301c71095e99.zip |
Merge "Clarify some HTML / plain text strings"
-rw-r--r-- | includes/filerepo/file/File.php | 6 | ||||
-rw-r--r-- | includes/media/MediaHandler.php | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index 6cb4d8018da0..d088b87fc001 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -2465,7 +2465,7 @@ abstract class File implements MediaHandlerState { } /** - * @return string + * @return string HTML */ public function getLongDesc() { $handler = $this->getHandler(); @@ -2477,7 +2477,7 @@ abstract class File implements MediaHandlerState { } /** - * @return string + * @return string HTML */ public function getShortDesc() { $handler = $this->getHandler(); @@ -2489,7 +2489,7 @@ abstract class File implements MediaHandlerState { } /** - * @return string + * @return string plain text */ public function getDimensionsString() { $handler = $this->getHandler(); diff --git a/includes/media/MediaHandler.php b/includes/media/MediaHandler.php index c5ec3c403c8b..cc7a092e3341 100644 --- a/includes/media/MediaHandler.php +++ b/includes/media/MediaHandler.php @@ -818,7 +818,7 @@ abstract class MediaHandler { * @stable to override * * @param File $file - * @return string + * @return string HTML */ public function getShortDesc( $file ) { return self::getGeneralShortDesc( $file ); @@ -830,7 +830,7 @@ abstract class MediaHandler { * @stable to override * * @param File $file - * @return string + * @return string HTML */ public function getLongDesc( $file ) { return self::getGeneralLongDesc( $file ); @@ -840,7 +840,7 @@ abstract class MediaHandler { * Used instead of getShortDesc if there is no handler registered for file. * * @param File $file - * @return string + * @return string HTML */ public static function getGeneralShortDesc( $file ) { global $wgLang; @@ -852,7 +852,7 @@ abstract class MediaHandler { * Used instead of getLongDesc if there is no handler registered for file. * * @param File $file - * @return string + * @return string HTML */ public static function getGeneralLongDesc( $file ) { return wfMessage( 'file-info' )->sizeParams( $file->getSize() ) @@ -882,7 +882,7 @@ abstract class MediaHandler { * @stable to override * * @param File $file - * @return string Dimensions + * @return string Dimensions (plain text) */ public function getDimensionsString( $file ) { return ''; |