René's URL Explorer Experiment


Title: Implement `wp media import` command by goldenapples · Pull Request #367 · wp-cli/wp-cli · GitHub

Open Graph Title: Implement `wp media import` command by goldenapples · Pull Request #367 · wp-cli/wp-cli

X Title: Implement `wp media import` command by goldenapples · Pull Request #367 · wp-cli/wp-cli

Description: ⚙️ WP-CLI framework. Contribute to wp-cli/wp-cli development by creating an account on GitHub.

Open Graph Description: I needed a quick way to import images into a WP site, so this is what I came up with. It takes a pathname, a list of file paths, or any system-globbed file path, and calls media_handle_sideload on ...

X Description: I needed a quick way to import images into a WP site, so this is what I came up with. It takes a pathname, a list of file paths, or any system-globbed file path, and calls media_handle_sideload on ...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d7117106-593f-9974-ae1e-a8ed3f4d7816
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id98A8:1175AE:2650172:3298C2E:6AFA3A8E
html-safe-noncef8376c3710c858a75271d608327ab34f8aa3c1dc850cefc2f2068a10855a2ea0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEE4OjExNzVBRToyNjUwMTcyOjMyOThDMkU6NkFGQTNBOEUiLCJ2aXNpdG9yX2lkIjoiMzQ4NzUxODA3NjEyMTUyODk3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac82c7f30c039594eccf9fb6905c942a10e5a5ee31f1e2e852dbc7a23d59102281
hovercard-subject-tagpull_request:4853328
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/wp-cli/wp-cli/367/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/bc928c730098e3d1e24bee2f6b5902b88ec91948bfbd6cbc88d038c8d4704db1/wp-cli/wp-cli/pull/367
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bc928c730098e3d1e24bee2f6b5902b88ec91948bfbd6cbc88d038c8d4704db1/wp-cli/wp-cli/pull/367
og:image:altI needed a quick way to import images into a WP site, so this is what I came up with. It takes a pathname, a list of file paths, or any system-globbed file path, and calls media_handle_sideload on ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegoldenapples
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/wp-cli/wp-cli git https://github.com/wp-cli/wp-cli.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id2360755
octolytics-dimension-repository_nwowp-cli/wp-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2360755
octolytics-dimension-repository_network_root_nwowp-cli/wp-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/wp-cli/wp-cli/pull/367#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli%2Fpull%2F367
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%2Fpull%2F367
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=wp-cli%2Fwp-cli
Reloadhttps://github.com/wp-cli/wp-cli/pull/367
Reloadhttps://github.com/wp-cli/wp-cli/pull/367
Reloadhttps://github.com/wp-cli/wp-cli/pull/367
wp-clihttps://github.com/wp-cli
wp-clihttps://github.com/wp-cli/wp-cli
Codehttps://github.com/wp-cli/wp-cli
Issues19 (19)https://github.com/wp-cli/wp-cli/issues
Pull requests12 (12)https://github.com/wp-cli/wp-cli/pulls
Discussionshttps://github.com/wp-cli/wp-cli/discussions
Actionshttps://github.com/wp-cli/wp-cli/actions
Wikihttps://github.com/wp-cli/wp-cli/wiki
Security and quality1 (1)https://github.com/wp-cli/wp-cli/security
Insightshttps://github.com/wp-cli/wp-cli/pulse
https://github.com/wp-cli/wp-cli
scribuhttps://github.com/scribu
wp-cli:masterhttps://github.com/wp-cli/wp-cli/tree/master
goldenapples:goldenapples/media-importhttps://github.com/goldenapples/wp-cli/tree/goldenapples/media-import
Conversationhttps://github.com/wp-cli/wp-cli/pull/367
Commits10 (10)https://github.com/wp-cli/wp-cli/pull/367/commits
Checkshttps://github.com/wp-cli/wp-cli/pull/367/checks
Files changedhttps://github.com/wp-cli/wp-cli/pull/367/files
Implement wp media import commandhttps://github.com/wp-cli/wp-cli/pull/367#top
scribuhttps://github.com/scribu
wp-cli:masterhttps://github.com/wp-cli/wp-cli/tree/master
goldenapples:goldenapples/media-importhttps://github.com/goldenapples/wp-cli/tree/goldenapples/media-import
https://github.com/goldenapples
goldenappleshttps://github.com/goldenapples
Mar 27, 2013https://github.com/wp-cli/wp-cli/pull/367#issue-12539019
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/scribu
scribuhttps://github.com/scribu
Mar 28, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-15569617
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
scribuhttps://github.com/scribu
Mar 28, 2013 https://github.com/wp-cli/wp-cli/pull/367#discussion-diff-3565223
View reviewed changes https://github.com/wp-cli/wp-cli/pull/367/files/ab544a8930d6d963be5616735ef458e55c112c01#diff-59b8244efddb4d3651e89a5c1e3e84e7a8437c4feebbc4345456a5bd70a20086
man-src/media-import.txthttps://github.com/wp-cli/wp-cli/pull/367/files#diff-59b8244efddb4d3651e89a5c1e3e84e7a8437c4feebbc4345456a5bd70a20086
scribuhttps://github.com/scribu
Mar 28, 2013https://github.com/wp-cli/wp-cli/pull/367#discussion_r3565223
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
goldenappleshttps://github.com/goldenapples
Mar 28, 2013https://github.com/wp-cli/wp-cli/pull/367#discussion_r3573086
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/goldenapples
goldenappleshttps://github.com/goldenapples
Mar 28, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-15602175
#212https://github.com/wp-cli/wp-cli/pull/212
#366https://github.com/wp-cli/wp-cli/pull/366
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/scribu
scribuhttps://github.com/scribu
Apr 8, 2013 https://github.com/wp-cli/wp-cli/pull/367#ref-issue-3686864
Media library manipulation #88 https://github.com/wp-cli/wp-cli/issues/88
https://github.com/scribu
scribuhttps://github.com/scribu
Apr 18, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-16573363
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
goldenappleshttps://github.com/goldenapples
April 25, 2013 12:43https://github.com/wp-cli/wp-cli/pull/367#commits-pushed-6bccb80
https://github.com/goldenapples
Initial implementation of wp media importhttps://github.com/wp-cli/wp-cli/pull/367/commits/6bccb80d7619f47391a44df3f5d884e5986f68d7
6bccb80https://github.com/wp-cli/wp-cli/pull/367/commits/6bccb80d7619f47391a44df3f5d884e5986f68d7
https://github.com/goldenapples
Add capability to download files from URLhttps://github.com/wp-cli/wp-cli/pull/367/commits/dd70a96efc41870cebcd3c54dd24ec4d3805bc54
dd70a96https://github.com/wp-cli/wp-cli/pull/367/commits/dd70a96efc41870cebcd3c54dd24ec4d3805bc54
https://github.com/goldenapples
Remove filename completion for wp media importhttps://github.com/wp-cli/wp-cli/pull/367/commits/51be561678556db85d2afbcdeff4eaa945a5188d
51be561https://github.com/wp-cli/wp-cli/pull/367/commits/51be561678556db85d2afbcdeff4eaa945a5188d
https://github.com/goldenapples
Rename arguments to make more logical sensehttps://github.com/wp-cli/wp-cli/pull/367/commits/f25992520584fc05f1af589ac608aa04a9f8780f
f259925https://github.com/wp-cli/wp-cli/pull/367/commits/f25992520584fc05f1af589ac608aa04a9f8780f
https://github.com/goldenapples
Add Behat feature for wp media importhttps://github.com/wp-cli/wp-cli/pull/367/commits/bc620eb45cf2920a9110f659ed3ad46744aff403
bc620ebhttps://github.com/wp-cli/wp-cli/pull/367/commits/bc620eb45cf2920a9110f659ed3ad46744aff403
https://github.com/goldenapples
Add --featured_image associative arghttps://github.com/wp-cli/wp-cli/pull/367/commits/d170024c17febf975b8c3bd5a10e5e45a614e925
d170024https://github.com/wp-cli/wp-cli/pull/367/commits/d170024c17febf975b8c3bd5a10e5e45a614e925
https://github.com/goldenapples
Update man page for wp media importhttps://github.com/wp-cli/wp-cli/pull/367/commits/661169fd55ee5124cf0003665cede7c37e8e1f6e
661169fhttps://github.com/wp-cli/wp-cli/pull/367/commits/661169fd55ee5124cf0003665cede7c37e8e1f6e
https://github.com/scribu
scribuhttps://github.com/scribu
Apr 26, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-17066345
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/goldenapples
goldenappleshttps://github.com/goldenapples
Apr 26, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-17082241
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
goldenappleshttps://github.com/goldenapples
April 26, 2013 14:39https://github.com/wp-cli/wp-cli/pull/367#commits-pushed-cd784fd
https://github.com/goldenapples
For local media imports, copy to tempfile before importinghttps://github.com/wp-cli/wp-cli/pull/367/commits/cd784fd2c51f72a18cc81e53e8b72a79d6debe8d
cd784fdhttps://github.com/wp-cli/wp-cli/pull/367/commits/cd784fd2c51f72a18cc81e53e8b72a79d6debe8d
https://github.com/goldenapples
Add behat features to test against local fileshttps://github.com/wp-cli/wp-cli/pull/367/commits/10f253ebff870015142594d43c33d432645d5b41
10f253ehttps://github.com/wp-cli/wp-cli/pull/367/commits/10f253ebff870015142594d43c33d432645d5b41
https://github.com/goldenapples
goldenappleshttps://github.com/goldenapples
Apr 26, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-17104005
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
scribuhttps://github.com/scribu
Apr 26, 2013 https://github.com/wp-cli/wp-cli/pull/367#discussion-diff-3986981
View reviewed changes https://github.com/wp-cli/wp-cli/pull/367/files/10f253ebff870015142594d43c33d432645d5b41#diff-17ac213994fba77a057ea81244d5859c564c6184ee2897e0a6bf020084b438b0
features/media.featurehttps://github.com/wp-cli/wp-cli/pull/367/files#diff-17ac213994fba77a057ea81244d5859c564c6184ee2897e0a6bf020084b438b0
scribuhttps://github.com/scribu
Apr 26, 2013https://github.com/wp-cli/wp-cli/pull/367#discussion_r3986981
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/goldenapples
Use variables in feature steps for readabilityhttps://github.com/wp-cli/wp-cli/pull/367/commits/8652b9adbf6b50582076cf3f65dccfb82ed7a111
https://github.com/wp-cli/wp-cli/commit/8652b9adbf6b50582076cf3f65dccfb82ed7a111#comments
8652b9ahttps://github.com/wp-cli/wp-cli/pull/367/commits/8652b9adbf6b50582076cf3f65dccfb82ed7a111
https://github.com/goldenapples
goldenappleshttps://github.com/goldenapples
Apr 27, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-17106513
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/scribu
scribuhttps://github.com/scribu
Apr 27, 2013https://github.com/wp-cli/wp-cli/pull/367#issuecomment-17113339
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
scribuhttps://github.com/scribu
Apr 27, 2013 https://github.com/wp-cli/wp-cli/pull/367#ref-commit-d667570
https://github.com/scribu-commits
Merge pull requesthttps://github.com/wp-cli/wp-cli/commit/d667570368eee1f2734b289361add37c0e1ec7d8
#367https://github.com/wp-cli/wp-cli/pull/367
from goldenapples/goldenapples/media-importhttps://github.com/wp-cli/wp-cli/commit/d667570368eee1f2734b289361add37c0e1ec7d8
d667570https://github.com/wp-cli/wp-cli/commit/d667570368eee1f2734b289361add37c0e1ec7d8
https://github.com/scribu
scribuhttps://github.com/scribu
d667570https://github.com/wp-cli/wp-cli/commit/d667570368eee1f2734b289361add37c0e1ec7d8
Apr 27, 2013https://github.com/wp-cli/wp-cli/pull/367#event-46850727
scribuhttps://github.com/scribu
Apr 27, 2013 https://github.com/wp-cli/wp-cli/pull/367#ref-commit-49cceec
https://github.com/scribu
Shorten description for wp media importhttps://github.com/wp-cli/wp-cli/commit/49cceec63db619f89f828d00d8c67f30e9837c99
49cceechttps://github.com/wp-cli/wp-cli/commit/49cceec63db619f89f828d00d8c67f30e9837c99
#367https://github.com/wp-cli/wp-cli/pull/367
scribuhttps://github.com/scribu
Apr 27, 2013 https://github.com/wp-cli/wp-cli/pull/367#ref-commit-c4d4adb
https://github.com/scribu
nested ternary operators are bad, mkay...https://github.com/wp-cli/wp-cli/commit/c4d4adb0059a68832ad471336a254cd005cb62c3
c4d4adbhttps://github.com/wp-cli/wp-cli/commit/c4d4adb0059a68832ad471336a254cd005cb62c3
#367https://github.com/wp-cli/wp-cli/pull/367
scribuhttps://github.com/scribu
Apr 27, 2013 https://github.com/wp-cli/wp-cli/pull/367#ref-commit-93aab78
https://github.com/scribu
validate --post_id only once and issue warninghttps://github.com/wp-cli/wp-cli/commit/93aab78fd284e62f395b36a4779f0318d8732fca
93aab78https://github.com/wp-cli/wp-cli/commit/93aab78fd284e62f395b36a4779f0318d8732fca
#367https://github.com/wp-cli/wp-cli/pull/367
https://github.co/hiddenchars
https://github.com/wp-cli/wp-cli/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli%2Fpull%2F367
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
scope:command https://github.com/wp-cli/wp-cli/issues?q=state%3Aopen%20label%3Ascope%3Acommand
0.10 https://github.com/wp-cli/wp-cli/milestone/9
Please reload this pagehttps://github.com/wp-cli/wp-cli/pull/367
https://github.com/goldenapples
https://github.com/scribu
https://github.com/jmslbam
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.