Page MenuHomePhabricator

lihaohong (Peter Li)
User

Today

  • No visible events.

Tomorrow

  • No visible events.

Tuesday

  • No visible events.

User Details

User Since
Sep 13 2022, 7:52 PM (204 w, 4 d)
Availability
Available
LDAP User
Peter Li
MediaWiki User
PetraMagna [ Global Accounts ]

Recent Activity

Mon, Aug 10

lihaohong added a comment to T423036: Feature request: Baidu Site Verification Key.

Patch uploaded. It seems that Baidu's webmaster tools redirect to https://ziyuan.baidu.com/ which is called 百度搜索资源平台 so I used that in the descriptions.

Mon, Aug 10, 7:23 PM · affects-Miraheze, Chinese-Sites, WikiSEO
lihaohong claimed T423036: Feature request: Baidu Site Verification Key.
Mon, Aug 10, 7:11 PM · affects-Miraheze, Chinese-Sites, WikiSEO
lihaohong updated subscribers of T426907: Timeless should use Codex design tokens.

I just realized that I pinged an inactive personal account this whole time. Hopefully @Jdlrobson-WMF wouldn't mind now that I finally pinged the right account.

Mon, Aug 10, 2:38 AM · Patch-For-Review, Codex, Timeless

Thu, Jul 23

lihaohong added a comment to T300618: Extension:CodeMirror incompatibility with, breaks Extension:LinkSuggest.

Now that CodeMirror 6, which comes with link suggestions, is the default on MediaWiki 1.46, fixing this issue no longer seems necessary because there isn't a reason to use LinkSuggest when CM6 is already activated.

Thu, Jul 23, 6:44 PM · MediaWiki-extensions-LinkSuggest

Mon, Jul 20

lihaohong added a comment to T426907: Timeless should use Codex design tokens.

Hi @Jdlrobson! I'm wondering if you are willing to review this patch. If not, what is the WMF's stance on patches like this for skins that are not widely used in production?

Mon, Jul 20, 5:14 PM · Patch-For-Review, Codex, Timeless

Sat, Jul 18

lihaohong added a comment to T425802: Extension:MsUpload causes the webpage to overflow past its boundaries on preview.

Since they are on Miraheze I cherry-picked the branch for REL1_46, which Miraheze is expected to upgrade to in August.

Sat, Jul 18, 2:12 AM · MediaWiki-extensions-MsUpload

Jul 12 2026

lihaohong updated subscribers of T425802: Extension:MsUpload causes the webpage to overflow past its boundaries on preview.

Hi @Samwilson, since you seem to be the de facto maintainer of the extension and introduced the original commit, do you have any thoughts on whether the fix should restore the DOM structure or simply put a band-aid on the shim positioning?

Jul 12 2026, 12:04 AM · MediaWiki-extensions-MsUpload

Jul 11 2026

lihaohong updated subscribers of T425802: Extension:MsUpload causes the webpage to overflow past its boundaries on preview.

As was suggested by @TheWWRNerdGuy in a Discord chat, the Shim is completely unused and is safe to be moved around.

Jul 11 2026, 11:58 PM · MediaWiki-extensions-MsUpload

Jul 8 2026

lihaohong created T431630: VoteNY extension uses removed MagicWordwgVariableIDs hook.
Jul 8 2026, 9:41 PM · RoadToWiki, Social-Tools, affects-Miraheze, VoteNY

Jul 5 2026

lihaohong renamed T431195: Extension:MagicNoCache magic word not recognized by Parsoid from MagicNoCache does not work under Parsoid to Extension:MagicNoCache magic word not recognized by Parsoid.
Jul 5 2026, 11:54 AM · affects-Miraheze, MediaWiki-extensions-MagicNoCache
lihaohong created T431195: Extension:MagicNoCache magic word not recognized by Parsoid.
Jul 5 2026, 11:54 AM · affects-Miraheze, MediaWiki-extensions-MagicNoCache

Jun 28 2026

lihaohong added a comment to T426907: Timeless should use Codex design tokens.

Forgot to note: as said in the commit message, a lot of effort went into backward compatibility. If that requirement is dropped, the patch can be greatly simplified. Timeless uses #37a for external links and #36c for internal links. I doubt many will notice the difference if we merge them into #36c.

Jun 28 2026, 9:27 AM · Patch-For-Review, Codex, Timeless
lihaohong added a comment to T372922: Add dark mode to Timeless.

There's a patch for T426907 now. Just need someone who is willing to review it. It worked well on my local machine, and the screenshot for https://phabricator.wikimedia.org/T426907#12062868 shows how it looks like with the patch applied.

Jun 28 2026, 9:05 AM · Community-Wishlist, dark-mode, Timeless
lihaohong added a parent task for T426907: Timeless should use Codex design tokens: T372922: Add dark mode to Timeless.
Jun 28 2026, 9:03 AM · Patch-For-Review, Codex, Timeless
lihaohong added a subtask for T372922: Add dark mode to Timeless: T426907: Timeless should use Codex design tokens.
Jun 28 2026, 9:03 AM · Community-Wishlist, dark-mode, Timeless
lihaohong added a comment to T426907: Timeless should use Codex design tokens.

Current dark mode look (after inserting the skin-theme-clientpref-night class into <html>). There are some elements missing support, such as table headers and icons, which are already noted in the task. They are planned to be addressed in follow-up patches to keep the current one lean.

Jun 28 2026, 9:03 AM · Patch-For-Review, Codex, Timeless

Jun 27 2026

lihaohong added a comment to T372922: Add dark mode to Timeless.

Related: T426907, which would clear most of the hurdles for dark mode Timeless support.

Jun 27 2026, 10:37 AM · Community-Wishlist, dark-mode, Timeless

Jun 3 2026

lihaohong closed T424432: UrlShortener should not add a sidebar button if the user does not have the permission to create a short URL as Resolved.

Yeah. Thank you @SomeRandomDeveloper @MusikAnimal !

Jun 3 2026, 8:41 PM · MediaWiki-extensions-UrlShortener

Jun 1 2026

lihaohong updated subscribers of T427732: GlobalBlocking should not block CentralAuth account autocreation.

I was informed by @RhinosF1 that this is a deliberate upstream change in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/966315. In particular, adding autocreateaccount to AbstractBlock.php.

Jun 1 2026, 1:08 AM · Product Safety and Integrity, affects-Miraheze, GlobalBlocking

May 31 2026

lihaohong created T427732: GlobalBlocking should not block CentralAuth account autocreation.
May 31 2026, 9:59 AM · Product Safety and Integrity, affects-Miraheze, GlobalBlocking

May 30 2026

lihaohong added a comment to T427700: Allow extensions to insert into specialParserFunctions for CodeMirror.

Besides Widget, Flex Diagrams has {{#display_diagram, DataMaps has {{#displaydatamap, and Mustache (this is the intended use case, but it's a new extension and is still very niche, so I used Widget as the example) has {{#html and {{#mustache. There are some other extensions such as CSS which conditionally needs to link to a wiki page, so those use cases may require some more abstractions which could overcomplicate things.

May 30 2026, 6:51 AM · MW-1.47-notes (1.47.0-wmf.14; 2026-08-04), MediaWiki-extensions-CodeMirror
lihaohong created T427700: Allow extensions to insert into specialParserFunctions for CodeMirror.
May 30 2026, 4:36 AM · MW-1.47-notes (1.47.0-wmf.14; 2026-08-04), MediaWiki-extensions-CodeMirror

May 21 2026

lihaohong created T426997: SecurePoll does not reject invalid default scores.
May 21 2026, 7:10 PM · Product Safety and Integrity, MediaWiki-extensions-SecurePoll, affects-Miraheze

May 20 2026

lihaohong updated subscribers of T426907: Timeless should use Codex design tokens.

@Jdlrobson Since the maintainers of Timeless are all inactive, I'm wondering if you'd be willing to review the patch when someone submits one to do the the conversion? I am interested in doing it, though this seems like a pretty time-consuming task and will likely take a while.

May 20 2026, 9:02 PM · Patch-For-Review, Codex, Timeless
lihaohong created T426907: Timeless should use Codex design tokens.
May 20 2026, 8:56 PM · Patch-For-Review, Codex, Timeless

Apr 25 2026

lihaohong created T424432: UrlShortener should not add a sidebar button if the user does not have the permission to create a short URL.
Apr 25 2026, 11:31 PM · MediaWiki-extensions-UrlShortener

Apr 12 2026

lihaohong closed T414895: WikiCategoryTagCloud incompatible with MediaWiki 1.45's new categorylinks schema as Resolved.

Resolved since the patch is merged and backported to 1.45.

Apr 12 2026, 7:44 PM · WikiCategoryTagCloud
lihaohong closed T415128: XmlDumpWriter.php fails to handle unknown content models as Resolved.

Resolved since the patch is merged and backported to 1.45.

Apr 12 2026, 7:44 PM · MW-1.45-notes, MediaWiki-Core-Snapshots

Apr 11 2026

lihaohong added a comment to T343703: Enable `nofollow` attribute for tool links.

I think "related changes" already has nofollow. The rest still don't and would require either a core patch or an extension patch (e.g. Extension:CiteThisPage).

Apr 11 2026, 7:57 PM · MediaWiki-Core-Skin-Architecture, SEO

Mar 13 2026

lihaohong added a comment to T419922: Unauthenticated Debug Mode Bypass Allows Cache Circumvention and Source Exposure in RenderBlocking Extension.

@0xJacks While some of your arguments make some sense, it's very clear that you have no idea what you are talking about when you write:

checking if the user has the editinterface or smw-admin permission

Mar 13 2026, 6:53 AM · affects-Miraheze, Security, Security-Team
lihaohong added a comment to T419922: Unauthenticated Debug Mode Bypass Allows Cache Circumvention and Source Exposure in RenderBlocking Extension.

Each debug request forces the server to re-fetch wiki page content and re-run the minifier (CSSMin / JavaScriptMinifier) without any caching. An attacker sending repeated requests can cause significant server load, particularly on wikis with many asset pages listed in MediaWiki:Renderblocking-pages.

Mar 13 2026, 12:41 AM · affects-Miraheze, Security, Security-Team
lihaohong added a comment to T419922: Unauthenticated Debug Mode Bypass Allows Cache Circumvention and Source Exposure in RenderBlocking Extension.

The author does not seem to be on phab, but it looks like a miraheze extension. Maybe @Paladox can help direct it to the right place

Mar 13 2026, 12:22 AM · affects-Miraheze, Security, Security-Team

Feb 22 2026

lihaohong added a project to T418075: Cargo fails to store list of integers: MediaWiki-extensions-Cargo.
Feb 22 2026, 11:17 PM · Regression, MediaWiki-extensions-Cargo, affects-Miraheze
lihaohong created T418075: Cargo fails to store list of integers.
Feb 22 2026, 11:16 PM · Regression, MediaWiki-extensions-Cargo, affects-Miraheze

Jan 23 2026

lihaohong created T415349: Extension:MediaSpoiler incompatible with Vector 2022's dark mode.
Jan 23 2026, 11:00 AM · dark-mode, MediaWiki-extensions-MediaSpoiler
lihaohong closed T415242: Extension:MediaSpoiler throws exception due to PHP 8.2's garbage collection as Resolved.

It seems that MW 1.44 is unaffected, so 1.45 is as far as backporting needs to go.

Jan 23 2026, 10:25 AM · affects-Miraheze, PHP 8.2 support, MediaWiki-extensions-MediaSpoiler

Jan 22 2026

lihaohong closed T415134: Extension:MediaSpoiler fails to link to the file as Resolved.
Jan 22 2026, 9:30 AM · MediaWiki-extensions-MediaSpoiler
lihaohong claimed T415242: Extension:MediaSpoiler throws exception due to PHP 8.2's garbage collection.
Jan 22 2026, 9:28 AM · affects-Miraheze, PHP 8.2 support, MediaWiki-extensions-MediaSpoiler
lihaohong renamed T415242: Extension:MediaSpoiler throws exception due to PHP 8.2's garbage collection from Extension:MediaSpoiler throws exception due PHP 8.2's garbage collection to Extension:MediaSpoiler throws exception due to PHP 8.2's garbage collection.
Jan 22 2026, 9:21 AM · affects-Miraheze, PHP 8.2 support, MediaWiki-extensions-MediaSpoiler
lihaohong created T415242: Extension:MediaSpoiler throws exception due to PHP 8.2's garbage collection.
Jan 22 2026, 9:03 AM · affects-Miraheze, PHP 8.2 support, MediaWiki-extensions-MediaSpoiler

Jan 20 2026

lihaohong claimed T415134: Extension:MediaSpoiler fails to link to the file.
Jan 20 2026, 8:59 PM · MediaWiki-extensions-MediaSpoiler
lihaohong created T415134: Extension:MediaSpoiler fails to link to the file.
Jan 20 2026, 8:58 PM · MediaWiki-extensions-MediaSpoiler
lihaohong claimed T415128: XmlDumpWriter.php fails to handle unknown content models.

Should be easy enough to pass an additional argument to writeText.

Jan 20 2026, 7:57 PM · MW-1.45-notes, MediaWiki-Core-Snapshots
lihaohong created T415128: XmlDumpWriter.php fails to handle unknown content models.
Jan 20 2026, 7:56 PM · MW-1.45-notes, MediaWiki-Core-Snapshots

Jan 19 2026

lihaohong claimed T414997: Extension:NoTitle fails to hide title on some skins due to low specificity.

I'll submit a patch, though it's yet to be seen whether !important or slapping more selectors is the right way to fix this.

Jan 19 2026, 11:52 PM · affects-Miraheze, MediaWiki-extensions-Other
lihaohong created T414997: Extension:NoTitle fails to hide title on some skins due to low specificity.
Jan 19 2026, 11:32 PM · affects-Miraheze, MediaWiki-extensions-Other
lihaohong claimed T414895: WikiCategoryTagCloud incompatible with MediaWiki 1.45's new categorylinks schema.

A similar patch submitted earlier also exists https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiCategoryTagCloud/+/1221109

Jan 19 2026, 1:50 AM · WikiCategoryTagCloud
lihaohong created T414895: WikiCategoryTagCloud incompatible with MediaWiki 1.45's new categorylinks schema.
Jan 19 2026, 12:59 AM · WikiCategoryTagCloud

Jan 18 2026

lihaohong closed T414872: NewSignupPage incompatible with MediaWiki 1.45: "Serialization of 'Closure' is not allowed" as Resolved.
Jan 18 2026, 9:17 PM · Social-Tools, affects-Miraheze, NewSignupPage
lihaohong claimed T414880: Erudite skin incompatible with MediaWiki 1.45: call to undefined method MediaWiki\Parser\ParserOutput::getText().

Shouldn't be too hard to fix.

Jan 18 2026, 5:44 AM · affects-Miraheze, MediaWiki-skins-Erudite
lihaohong created T414880: Erudite skin incompatible with MediaWiki 1.45: call to undefined method MediaWiki\Parser\ParserOutput::getText().
Jan 18 2026, 5:43 AM · affects-Miraheze, MediaWiki-skins-Erudite
lihaohong added a comment to T414874: ImageRating incompatible with MediaWiki 1.45's new categorylinks schema.

Thanks for the pointer. I guess we'll wait and see how things play out then. This schema migration will be pretty painful so I won't be able to do it in the short term either.

Jan 18 2026, 1:16 AM · Social-Tools, affects-Miraheze, ImageRating
lihaohong added a comment to T414876: ImageRating failing to list newest images when they are unrated.

Thanks for the quick reply. I suppose this is more of a documentation issue then since https://www.mediawiki.org/wiki/Extension:ImageRating doesn't mention the need to explicitly add <vote type=1 /> to uploaded file pages.

Jan 18 2026, 1:04 AM · RoadToWiki, Social-Tools, ImageRating
lihaohong added a comment to T414876: ImageRating failing to list newest images when they are unrated.

The problematic SQL is

SELECT page_id,page_title,COUNT(vote_value),AVG(vote_value) AS vote_avg FROM `page` LEFT JOIN `Vote` ON ((page_id = vote_page_id)) WHERE page_namespace = 6 AND (vote_page_id = page_id) GROUP BY page_id, page_title ORDER BY page_id DESC LIMIT 5;

The vote_page_id = page_id in the WHERE clause is the cause. If no rating exists for the image, the left join would result in null values for all fields in the Vote table, so the equality comparison will always fail. This WHERE clause is redundant anyway since page_id = vote_page_id is specified in the join already.

Jan 18 2026, 12:51 AM · RoadToWiki, Social-Tools, ImageRating
lihaohong created T414876: ImageRating failing to list newest images when they are unrated.
Jan 18 2026, 12:49 AM · RoadToWiki, Social-Tools, ImageRating
lihaohong updated the task description for T414874: ImageRating incompatible with MediaWiki 1.45's new categorylinks schema.
Jan 18 2026, 12:14 AM · Social-Tools, affects-Miraheze, ImageRating
lihaohong updated the task description for T414872: NewSignupPage incompatible with MediaWiki 1.45: "Serialization of 'Closure' is not allowed".
Jan 18 2026, 12:13 AM · Social-Tools, affects-Miraheze, NewSignupPage
lihaohong created T414874: ImageRating incompatible with MediaWiki 1.45's new categorylinks schema.
Jan 18 2026, 12:11 AM · Social-Tools, affects-Miraheze, ImageRating

Jan 17 2026

lihaohong claimed T414872: NewSignupPage incompatible with MediaWiki 1.45: "Serialization of 'Closure' is not allowed".

I'll submit a patch once I figure out how to submit patches to gerrit for the third time.

Jan 17 2026, 11:50 PM · Social-Tools, affects-Miraheze, NewSignupPage
lihaohong created T414872: NewSignupPage incompatible with MediaWiki 1.45: "Serialization of 'Closure' is not allowed".
Jan 17 2026, 11:49 PM · Social-Tools, affects-Miraheze, NewSignupPage

Jan 12 2026

lihaohong updated the task description for T414329: Scribunto frame:extensionTag can cause parsing to fail if invalid UTF-8 passed to it.
Jan 12 2026, 12:05 PM · affects-Miraheze, MediaWiki-Parser, Scribunto
lihaohong created T414329: Scribunto frame:extensionTag can cause parsing to fail if invalid UTF-8 passed to it.
Jan 12 2026, 11:47 AM · affects-Miraheze, MediaWiki-Parser, Scribunto

Jan 5 2026

lihaohong added a comment to T401500: ArticleFeedbackv5 reports it is not enabled for a page despite the form showing up.

Follow-up: works on 1.45 on Mirabeta. Whatever was causing the issue originally went away.

Jan 5 2026, 11:40 PM · affects-Miraheze, ArticleFeedbackv5

Dec 5 2025

lihaohong updated subscribers of T411848: Cargo's Lua support causing errors.

Backtrace from @SomeRandomDeveloper in https://issue-tracker.miraheze.org/P567

Dec 5 2025, 8:24 AM · MediaWiki-extensions-Cargo, affects-Miraheze

Oct 13 2025

lihaohong updated subscribers of T407162: Including the same TemplateStyles stylesheet multiple times increases unstrip post-expand size.

@stjn I believe it was you who suggested reporting this on Phabricator on Discord since the username matches your profile.

Oct 13 2025, 9:43 PM · MediaWiki-Parser, TemplateStyles
lihaohong created T407162: Including the same TemplateStyles stylesheet multiple times increases unstrip post-expand size.
Oct 13 2025, 9:37 PM · MediaWiki-Parser, TemplateStyles

Oct 9 2025

lihaohong added a comment to T406895: WikiSEO cannot set an external URL as the image if $wgAllowExternalImages is set to true.

As a workaround, the url can be inserted in the form of //static.wikitide.net.... Dropping the protocol will prevent $wgAllowExternalImages from touching it, but the url is still recognized by WikiSEO and by some applications (discord was okay with it).

Oct 9 2025, 8:21 PM · User-SomeRandomDeveloper, Patch-For-Review, affects-Miraheze, WikiSEO
lihaohong added a comment to T406895: WikiSEO cannot set an external URL as the image if $wgAllowExternalImages is set to true.

Downstream: https://issue-tracker.miraheze.org/T13802

Oct 9 2025, 3:53 PM · User-SomeRandomDeveloper, Patch-For-Review, affects-Miraheze, WikiSEO
lihaohong created T406895: WikiSEO cannot set an external URL as the image if $wgAllowExternalImages is set to true.
Oct 9 2025, 3:49 PM · User-SomeRandomDeveloper, Patch-For-Review, affects-Miraheze, WikiSEO

Sep 30 2025

lihaohong added a comment to T405314: Vector 2022's horizontal padding for page container is too large under smaller screen widths.

I'm not sure why 320px is the center of the argument here. I feel like I made some good points independent of the exact size of the mobile screen (i.e. the padding used by other responsive skins and the need to have more space available for content on mobile). Regardless, I updated the original task description and changed 320px to 400px (along with all the screenshots).

Sep 30 2025, 3:40 AM · Readers Essential Work (Vector 2022 is responsive on wikifunctions.org), Reader Experience Team, Patch-For-Review, Vector 2022
lihaohong updated the task description for T405314: Vector 2022's horizontal padding for page container is too large under smaller screen widths.
Sep 30 2025, 3:26 AM · Readers Essential Work (Vector 2022 is responsive on wikifunctions.org), Reader Experience Team, Patch-For-Review, Vector 2022

Sep 23 2025

lihaohong added a comment to T405314: Vector 2022's horizontal padding for page container is too large under smaller screen widths.

I tried some other widths. Vector 2022 uses 1.5rem padding for screen widths 1100px and below. Using the same padding for 400px and 1100px width screens does not seem like a good idea to me and I don't think any other major responsive skin is doing this. Besides 0.45em and 1em, there's Fandom which uses 0.75em and Citizen which uses 20px=1.25em, and Citizen's spacing also seems awfully large to me.

Sep 23 2025, 7:46 AM · Readers Essential Work (Vector 2022 is responsive on wikifunctions.org), Reader Experience Team, Patch-For-Review, Vector 2022
lihaohong added a comment to T405314: Vector 2022's horizontal padding for page container is too large under smaller screen widths.

Which hardware is this? I don't think we want to spend a lot of effort on such extreme screen widths.

Sep 23 2025, 7:13 AM · Readers Essential Work (Vector 2022 is responsive on wikifunctions.org), Reader Experience Team, Patch-For-Review, Vector 2022
lihaohong added a comment to T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44.

Yeah that does seem to be the case. I switched TemplateStyles to the master branch and, after dropping the MW 1.45 version check, CodeMirror functions correctly for sanitized stylesheets.

Sep 23 2025, 4:10 AM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror
lihaohong added a comment to T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44.

Thanks for the suggestion. It did not make a difference on my end since codemirror still refuses to work with templatestyles stylesheets and scribunto.

Sep 23 2025, 3:17 AM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror
lihaohong added a comment to T365631: Redesign Vector 2022 header and actions for mobile devices.

I noticed that mw-body-header already has display: flex, so what is preventing us from setting flex-wrap to wrap under narrow screens?

Sep 23 2025, 2:49 AM · Readers Essential Work (Vector 2022 is responsive on wikifunctions.org), Reader Experience Team, Patch-For-Review, MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), Design, Mobile, Vector 2022
lihaohong created T405314: Vector 2022's horizontal padding for page container is too large under smaller screen widths.
Sep 23 2025, 2:25 AM · Readers Essential Work (Vector 2022 is responsive on wikifunctions.org), Reader Experience Team, Patch-For-Review, Vector 2022

Sep 20 2025

lihaohong added a comment to T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44.

Thanks for the suggestion. I modified $wgCodeMirrorContentModels to include more content models. css and javascript worked and the editor used CM6, but Scribunto and sanitized-css did not. I got the following error for both sanitized-css and Scribunto.

Warning: [CodeMirror] Unsupported content model sanitized-css [Called from MediaWiki\Extension\CodeMirror\Hooks::loadCodeMirrorOnEditPage in /var/www/mediawiki/extensions/CodeMirror/includes/Hooks.php at line 220]

Of course, if I remove these content models from CM's configuration, I get the plaintext input box again instead of the old CodeEditor.

Sep 20 2025, 6:31 AM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror
lihaohong updated the task description for T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44.
Sep 20 2025, 12:02 AM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror

Sep 19 2025

lihaohong added a project to T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44: CodeEditor.
Sep 19 2025, 11:43 PM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror
lihaohong added a comment to T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44.

Forgot to note: this also affects Lua modules and javascript pages, which are handled by CodeEditor but would become plaintext editors after enabling "Improved Syntax Highlighting".

Sep 19 2025, 11:43 PM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror
lihaohong created T405134: CSS syntax highlighting disappears after enabling Code Mirror 6 on MediaWiki 1.44.
Sep 19 2025, 11:41 PM · CodeEditor, affects-Miraheze, MediaWiki-extensions-CodeMirror

Sep 16 2025

lihaohong added a comment to T231846: Wikidata 'edit' button blocks description for properties.

Any updates on this? Moving the edit button's position in the DOM up so that it is before the description and then making it float: right should be a quick and easy solution? This button is small enough that usual concerns of float don't apply. Plus, users will be using mobilefrontend on narrower screens.

Sep 16 2025, 7:37 AM · Wikidata Omega Product, wmde-wikidata-tech (Wikidata Omega Triage), Wikidata

Aug 31 2025

lihaohong added a comment to T403319: Image hue is inverted in dark mode.

AFAIK there is no fix for this. Your best bet is to disable this extension and write your own dark mode CSS. You can also use the Theme or ThemeToggle extensions to allow switching between multiple themes.

Aug 31 2025, 9:10 AM · MediaWiki-extensions-DarkMode

Aug 21 2025

lihaohong closed T399142: MsUpload does not accommodate vector 2022's dark mode as Resolved.

Thanks @Samwilson. Looks like this is all good. Just need to wait for the patch to reach downstream.

Aug 21 2025, 7:14 PM · dark-mode, MediaWiki-extensions-MsUpload, affects-Miraheze
lihaohong added a comment to T402066: Tables are forced to have display:block regardless of their size.

@Jdlrobson-WMF I uploaded a patch for MinervaNeue as well. Minerva's CSS is a bit different, but I think the outcome is the same. The extra gray background mentioned in T361838 should be gone without compromising the scrolling behavior for larger tables.

Aug 21 2025, 2:20 AM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS
lihaohong added a comment to T402066: Tables are forced to have display:block regardless of their size.

@lihaohong the code serves both mobile and desktop and I don't believe fit-content has any effect there.

Aug 21 2025, 12:16 AM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS

Aug 20 2025

lihaohong added a comment to T402066: Tables are forced to have display:block regardless of their size.

In particular, width: fit-content gets overridden by max-width: 100% with the screen is narrow, so I don't understand why this needs to be closed. It should be a strict improvement over the current solution.

Aug 20 2025, 10:32 PM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS
lihaohong reopened T402066: Tables are forced to have display:block regardless of their size as "Open".

The proposed fix does not compromise responsiveness in any way. It simply removes the problematic borders on the right.

Aug 20 2025, 10:31 PM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS

Aug 16 2025

lihaohong created T402067: Parser adds an extra paragraph for self-links inside a table.
Aug 16 2025, 3:21 AM · MediaWiki-Parser
lihaohong added a comment to T402066: Tables are forced to have display:block regardless of their size.

Looks like the CSS was added as a result of T330527. I'm surprised it passed all the quality control steps considering how it breaks smaller tables on narrower screens.

Aug 16 2025, 1:04 AM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS
lihaohong added a project to T402066: Tables are forced to have display:block regardless of their size: CSS.
Aug 16 2025, 12:53 AM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS
lihaohong created T402066: Tables are forced to have display:block regardless of their size.
Aug 16 2025, 12:46 AM · MW-1.44-notes, Verified, Patch-For-Review, Reader Experience Team, MW-1.45-notes (1.45.0-wmf.16; 2025-08-26), MediaWiki-Core-Skin-Architecture, CSS

Aug 11 2025

lihaohong created T401621: Wikitext parser inserts newlines for parser functions inside tables.
Aug 11 2025, 6:42 PM · affects-Miraheze, MediaWiki-Parser

Jul 10 2025

lihaohong updated the task description for T399142: MsUpload does not accommodate vector 2022's dark mode.
Jul 10 2025, 3:17 AM · dark-mode, MediaWiki-extensions-MsUpload, affects-Miraheze
lihaohong created T399142: MsUpload does not accommodate vector 2022's dark mode.
Jul 10 2025, 2:48 AM · dark-mode, MediaWiki-extensions-MsUpload, affects-Miraheze

Jun 5 2025

lihaohong updated subscribers of T396102: The client-darkmode class is not added for anonymous users.

It probably has to do with the following js. It doesn't do anything with client-darkmode if the user is anonymous. @Kizule would it be fine to execute the if ( darkMode ) statement for both anonymous and logged-in users? This change works on my local testing environment, but I'm not sure if the code is the way it is for some other reasons.

if ( mw.user.isAnon() ) {
        // If the user is anonymous (not logged in) write a cookie
        mw.user.clientPrefs.set( 'skin-theme', darkMode ? 'night' : 'day' );
} else {
        // If the user is logged in write with API to user settings
        new mw.Api().saveOption( 'darkmode', darkMode ? '1' : '0' );
        if ( darkMode ) {
                docClassList.add( 'skin-theme-clientpref-night' );
                docClassList.add( 'client-darkmode' );
                docClassList.remove( 'skin-theme-clientpref-day' );
        } else {
                docClassList.add( 'skin-theme-clientpref-day' );
                docClassList.remove( 'client-darkmode' );
                docClassList.remove( 'skin-theme-clientpref-night' );
        }
}
Jun 5 2025, 9:29 AM · Regression, affects-Miraheze, MediaWiki-extensions-DarkMode
lihaohong created T396102: The client-darkmode class is not added for anonymous users.
Jun 5 2025, 9:20 AM · Regression, affects-Miraheze, MediaWiki-extensions-DarkMode

Jan 19 2025

lihaohong added a comment to T373511: Special:AllComments is incompatible with MediaWiki 1.42.

Looks like this is the offending table name.

((SELECT cst_c_comment_page_id AS `union_page_id` FROM `cs_comments` ) UNION (SELECT cst_r_reply_page_id AS `union_page_id` FROM `cs_replies` )) AS union_table

As far as I can tell, extractTableNameComponents checks whether there is a quotation mark in the string. If there is, it'll panic an throw the exception seen here. The backticks (`) are the culprit.

Jan 19 2025, 11:15 AM · affects-Miraheze, MediaWiki-extensions-CommentStreams

Nov 27 2023

lihaohong closed T319856: Migrate lihaohong-bot from Toolforge GridEngine to Toolforge Kubernetes as Resolved.
Nov 27 2023, 3:58 AM · Grid-Engine-to-K8s-Migration