Comments (2)
invisnet
with #477, i remember we looked into that when including composer.json - did we miss something or just get it wrong?
James Nylen 12:37 AM
no, we looked into something different (what happens when migrating if composer.json already exists)
I don't think we really got that case right either
invisnet 12:38 AM
ah, that'd be it....
really goes back to the fundamental problem that it's in the wrong place
James Nylen 12:39 AM
composer wants to install from the repo where composer.json lives though, right? if that's the only way then there isn't really a better place to put it
invisnet 12:43 AM
there was a convo about subdirs etc iirc to solve that - not something for 1.x obvs
is there any existing logic for not overwriting files?
James Nylen 12:50 AM
I don't remember seeing anything like that.. the simplest fix would just be putting if ( $filename === 'composer.json' ) { continue; } in the right place
yeah, "if it doesn't exist, write it, otherwise leave it alone"
this works because composer.json (normally) doesn't change across releases
invisnet 12:54 AM
it'll change between v1 and v2 won't it?
nevermind - it'll change when johnpbloch/wordpress-core-installer changes as we've got a specific version in there
i think we need to change that to "^1.0"
James Nylen 1:04 AM
wfm
from classicpress.
See also: ClassicPress/ClassicPress-Migration-Plugin#61
from classicpress.
Related Issues (20)
- Paste image from clipboard to upload HOT 2
- Add editor shortcode-button hook HOT 14
- Modify the folder structure used to upload media files into years HOT 4
- Replace Petitions Dashboard widget API HOT 11
- Fix custom post status bug (#12706) HOT 3
- Missing Instructions:: Run PHPCS locally before commit
- Missing Information: Working with JS and CSS files. HOT 1
- π‘ ClassicPress version issues and conflict with plugins HOT 17
- π‘ Add an Object-Relationship Table HOT 1
- π‘ Automate changelog and release notes generation HOT 3
- π‘ new default for attachment order by date instead of ID HOT 2
- π Cookie βwp-settings-4β does not have a proper βSameSiteβ attribute value HOT 5
- Add Chinese support π‘ HOT 4
- πwp-json/wp/v2/my-custom-post-type?_fields=title,meta.somefld is not rendering meta array HOT 3
- Increment security by removing filters from escaping/sanitization functions? HOT 1
- π‘ Add Additional Hooks Into Comment Display Class HOT 4
- Deprecate Farbtastic
- π Twig not rendered after migrating WP 6.4 multisite to CP 1.7.1 HOT 7
- WordPress/ClassicPress (WXR) Import Tool HOT 4
- π Plugins: Modal window doesnt open (TypeError: f.showModal is not a function) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classicpress.