Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WP-CLI command for rewriting old posts #143

Closed
joemcgill opened this issue Jul 14, 2015 · 5 comments
Closed

Add WP-CLI command for rewriting old posts #143

joemcgill opened this issue Jul 14, 2015 · 5 comments

Comments

@joemcgill
Copy link
Member

Another approach to providing responsive images to posts written prior to installing this plugin, is to provide a command through WP-CLI which would update all of the posts in the database with the new image markup. Ideally, we would do a search of the DB for all instances of images with a URL path that matches the site's uploads directory (or by looking for a wp-image- class) and update each of those posts so that they can be rolled back, via post revisions, if anything breaks.

@joemcgill
Copy link
Member Author

Related to issue #83

@danjaworsky
Copy link

+1

@ryanwiemer
Copy link

+1 I really hope this can be implemented in the near future.

@jasperf
Copy link

jasperf commented Sep 21, 2015

+1 Would really be great. Just added the plugin and the blog is atm loading several older posts that do not have the images that are responsive.

@joemcgill
Copy link
Member Author

Since we've switched to a display filter, this functionality is no longer needed. Related #148.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants