René's URL Explorer Experiment


Title: Run the maintenance code of the checkout you are in by schlessera · Pull Request #85 · wp-cli/wp-cli-dev · GitHub

Open Graph Title: Run the maintenance code of the checkout you are in by schlessera · Pull Request #85 · wp-cli/wp-cli-dev

X Title: Run the maintenance code of the checkout you are in by schlessera · Pull Request #85 · wp-cli/wp-cli-dev

Description: Running the main checkout's wp from a worktree, which is how agents usually work, silently ran the main checkout's maintenance code instead of the worktree's. This came up while tagging the latest package releases: the worktree had the newly merged commands, but the old ones ran and failed. Both checkouts map the WP_CLI\Maintenance namespace. WP-CLI registers the executable's Composer autoloader after it has loaded the files listed in wp-cli.yml, so that autoloader always wins, even over one that was prepended. The maintenance classes are now loaded directly when wp-cli.yml is read, instead of through an autoloader, so the code that runs is always the code of the directory you are in. There are only a handful of small classes, so loading them up front costs nothing noticeable. This also lets the shim stop deferring to Composer when the checkout has its own vendor folder, which was only there to avoid loading the classes twice. Summary by CodeRabbit Chores Maintenance operations now load application PHP files directly. The previous fallback loading behavior has been removed; no end-user-facing changes are noted.

Open Graph Description: Running the main checkout's wp from a worktree, which is how agents usually work, silently ran the main checkout's maintenance code instead of the worktree's. This came up while tagging...

X Description: Running the main checkout's wp from a worktree, which is how agents usually work, silently ran the main checkout's maintenance code instead of the worktree's. This came up w...

Opengraph URL: https://github.com/wp-cli/wp-cli-dev/pull/85

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6992522f-b42d-754c-3083-adc60a26ee2b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEC6:37056B:280F25:366AB1:6AFB9FDF
html-safe-nonce3f3e5d1fdd33810e82be83ff2022dbe14aa0827a3bc8d2e9c159d6df3a7c2669
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUM2OjM3MDU2QjoyODBGMjU6MzY2QUIxOjZBRkI5RkRGIiwidmlzaXRvcl9pZCI6IjYzNDEyMjQ4MjQzOTU1MDU2MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac72fcdfadd6772a88e68a9ff2c0e243aa9c6100ccceb4a398a4a2ac0aa5dfb744
hovercard-subject-tagpull_request:5088533942
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/wp-cli/wp-cli-dev/pull/85/files
twitter:imagehttps://avatars.githubusercontent.com/u/83631?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/83631?s=400&v=4
og:image:altRunning the main checkout's wp from a worktree, which is how agents usually work, silently ran the main checkout's maintenance code instead of the worktree's. This came up while tagging...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/wp-cli/wp-cli-dev git https://github.com/wp-cli/wp-cli-dev.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id147706405
octolytics-dimension-repository_nwowp-cli/wp-cli-dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id147706405
octolytics-dimension-repository_network_root_nwowp-cli/wp-cli-dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/wp-cli/wp-cli-dev/pull/85/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli-dev%2Fpull%2F85%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli-dev%2Fpull%2F85%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=wp-cli%2Fwp-cli-dev
Reloadhttps://github.com/wp-cli/wp-cli-dev/pull/85/files
Reloadhttps://github.com/wp-cli/wp-cli-dev/pull/85/files
Reloadhttps://github.com/wp-cli/wp-cli-dev/pull/85/files
wp-clihttps://github.com/wp-cli
wp-cli-devhttps://github.com/wp-cli/wp-cli-dev
Codehttps://github.com/wp-cli/wp-cli-dev
Issueshttps://github.com/wp-cli/wp-cli-dev/issues
Pull requests3 (3)https://github.com/wp-cli/wp-cli-dev/pulls
Actionshttps://github.com/wp-cli/wp-cli-dev/actions
Projectshttps://github.com/wp-cli/wp-cli-dev/projects
Security and qualityhttps://github.com/wp-cli/wp-cli-dev/security
Insightshttps://github.com/wp-cli/wp-cli-dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fwp-cli%2Fwp-cli-dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fwp-cli%2Fwp-cli-dev%2Fissues%2Fnew%2Fchoose
schlesserahttps://github.com/schlessera
mainhttps://github.com/wp-cli/wp-cli-dev/tree/main
fix-maintenance-autoloadhttps://github.com/wp-cli/wp-cli-dev/tree/fix-maintenance-autoload
Conversation 6 https://github.com/wp-cli/wp-cli-dev/pull/85
Commits 3 https://github.com/wp-cli/wp-cli-dev/pull/85/commits
Checks 18 https://github.com/wp-cli/wp-cli-dev/pull/85/checks
Files changed https://github.com/wp-cli/wp-cli-dev/pull/85/files
Please reload this pagehttps://github.com/wp-cli/wp-cli-dev/pull/85/files
Run the maintenance code of the checkout you are in https://github.com/wp-cli/wp-cli-dev/pull/85/files#top
Show all changes 3 commits https://github.com/wp-cli/wp-cli-dev/pull/85/files
24cccaa Load the maintenance classes of the checkout that runs them schlessera Oct 30, 2026 https://github.com/wp-cli/wp-cli-dev/pull/85/commits/24cccaac6996e6ccb6039441341a5c7df4c88145
97954bb Read the class files from the literal source directory schlessera Oct 30, 2026 https://github.com/wp-cli/wp-cli-dev/pull/85/commits/97954bb1812d3bd4eb44cc753108bba9a7b479ed
2aa8f6d Merge branch 'main' into fix-maintenance-autoload schlessera Oct 30, 2026 https://github.com/wp-cli/wp-cli-dev/pull/85/commits/2aa8f6dd9d9da18c4ce77ef838b15ff9fb784295
Clear filters https://github.com/wp-cli/wp-cli-dev/pull/85/files
Please reload this pagehttps://github.com/wp-cli/wp-cli-dev/pull/85/files
Please reload this pagehttps://github.com/wp-cli/wp-cli-dev/pull/85/files
https://github.com/wp-cli/wp-cli-dev/blob/main/.github/CODEOWNERS#L1
.maintenance/autoload.phphttps://github.com/wp-cli/wp-cli-dev/pull/85/files#diff-ee529d7a8978f23de04377fddd7f684aeac1a6fa69ff08d96009964611fc5f14
View file https://github.com/wp-cli/wp-cli-dev/blob/2aa8f6dd9d9da18c4ce77ef838b15ff9fb784295/.maintenance/autoload.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/wp-cli/wp-cli-dev/pull/85/{{ revealButtonHref }}
Please reload this pagehttps://github.com/wp-cli/wp-cli-dev/pull/85/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.