March 30th, 2019
This is the first patch in a series of slimming patches for mp-wp. The biggest savings comes from the removal of TinyMCE, a JavaScript library for rendering "WYSIWYG" text editing boxes for the types of users who might fall and hurt themselves if, god forbid, they had to write some HTML tags by hand.
Additionally, all importers were removed with the exception of the importer that handles files generated by the native WordPress exporter. Other items removed include the Google Gears plugin, as well as any "auto-upgrade" "features" that any self-respecting citizen of the republic would neither need nor want to use.
This patch was first published and announced in #trilema last week but has since been reground to fit on top of hanbot's latest. Overall this patch proved to be an effective first step in mp-wp's healthy new lifestyle, resulting in a 14% reduction in total LOC and an 18% reduction in size-on-disk (21% when comparing gzipped directories).
|
Before |
After |
Reduction |
Lines of Code |
162,594 |
139,205 |
14.4% |
Bytes on Disk |
6,053,039 |
4,962,628 |
18% |
Patch and Signature
mp-wp_remove-tinymce-and-other-crud.vpatch
mp-wp_remove-tinymce-and-other-crud.vpatch.billymg.sig
Posted in mp-wp, v | 13 Comments »
January 13th, 2019
A few small formatting issues came through in my first two mp-wp patches. Hanbot caught one in the .svg file extension patch. The other, in the footnotes and text-selection patch, I noticed myself after deploying the changes on this blog. Nothing was broken, just some stray text showing up in the footer of the rendered page that should have been parsed as a comment.
Current Patches
Get the latest patches for mp-wp here
Old Versions
For auditing purposes only. The patches and signatures have been updated in place on this blog, so the previous posts describing them point to the new versions. For reference only, copies of the old patches and signatures can be found here:
http://billymg.com/downloads/mp-wp/old/patches/
http://billymg.com/downloads/mp-wp/old/.seals/
Posted in mp-wp, v | No Comments »
January 7th, 2019
There was a small, albeit widespread, bug in the original mp-wp genesis vpatch that resulted in broken image references throughout the site (admin panel as well as blog themes). This vpatch simply updates any and all internal image references to point to the correct .svg
file extension.
Here is the vpatch, signature, and my key:
http://billymg.com/downloads/mp-wp/mp-wp_update-image-references-to-svg.vpatch
http://billymg.com/downloads/mp-wp/mp-wp_update-image-references-to-svg.vpatch.billymg.sig
http://billymg.com/downloads/billymg.asc
Pressing mp-wp from this patch
If you don't already have a copy of the previous patches you can grab the files you need from this blog. I added the new mirror of the mp-wp vtree for convenience and redundancy, and because it was suggested to me in #trilema.
Import both hanbot's and my key to your gpg keyring and construct your working directory to contain the following:
patches/
mp-wp_genesis.vpatch
mp-wp_add-footnotes-and-text-selectionjs.vpatch
mp-wp_update-image-references-to-svg.vpatch
.seals/
mp-wp_genesis.vpatch.hanbot.sig
mp-wp_add-footnotes-and-text-selectionjs.vpatch.billymg.sig
mp-wp_update-image-references-to-svg.vpatch.billymg.sig
v.pl
.wot/
hanbot.asc
billymg.asc
If this looks right, you can now press mp-wp into the v_press
directory (or whatever you want to call it):
./v.pl p v v_press mp-wp_update-image-references-to-svg.vpatch
Result of pressing from this patch vs. previous patches in the vtree
Before
After
Additional work
It's been quite a pleasure thus far working on mp-wp using v. I have a few ideas for future mp-wp work, and I know there are others floating around, but outlining them will have to come in a later post, perhaps after some discussion.
Posted in mp-wp, v | 3 Comments »