Reviewing a Subset of Commits in a GitHub Pull Request

For many years now, GitHub has provided a compare view to see the differences between any two commits, taking the form of: http://github.com/<USER>/<REPO>/compare/[<START>…]<END> This has been useful in the context of long-running pull requests to see just a subset of the changes. But there has been a big problem with this view: you cannot comment on such a compare … Continue reading Reviewing a Subset of Commits in a GitHub Pull Request

Resetting the Customizer to a Blank Slate

Sometimes it is desirable to be able to load the customizer without any of the panels, sections, controls, or settings that would normally be registered by core, themes, or plugins. For instance, in Customize Posts there is the ability to open the customizer via the “Preview” button from the edit post screen. When the customizer … Continue reading Resetting the Customizer to a Blank Slate

Dependently-Contextual Customizer Controls

In my previous post I discussed how to get the Customizer preview to navigate to a URL when a section is expanded, where this is basically turning the concept of contextual controls on its head: instead of showing a control/section/panel when navigating to a given URL, focusing on the control/section/panel can cause the relevant URL to be … Continue reading Dependently-Contextual Customizer Controls

Navigating to a URL in the Customizer Preview when a Section is Expanded

On Otto’s What’s new with the Customizer post there’s a long-running comments thread in which a good question was raised by Jascha: with the active callback you can show a section or panel depending on the URL you are looking at. But is it possible the other way around? Showing a different URL depending on … Continue reading Navigating to a URL in the Customizer Preview when a Section is Expanded

Customizer Browser History Plugin

I’m happy to share a newly published feature plugin that implements #28536: Customizer Browser History. From the readme: This plugin keeps the Customizer URL in the browser updated with current previewed URL as the url query param and current expanded panel/section/control as autofocus params. This allows for bookmarking and also the ability to reload and return go … Continue reading Customizer Browser History Plugin

Matt Mullenweg on the Customizer in WP Tavern Interview

Matt Mullenweg, co-founder of WordPress, was recently interviewed on WP Tavern. He had some important things to say about the Customizer at 1:05:00 into the interview (transcript below): https://wptavern.com/wp-content/uploads/2016/07/EPISODE-240-Interview-With-Matt-Mullenweg-2016.mp3 Jeff Chandler: At WordCamp US you said that Customization is the single biggest opportunity for improving the WordPress experience, and I wanted to know, could you … Continue reading Matt Mullenweg on the Customizer in WP Tavern Interview

Registering Project-specific PHP_CodeSniffer Rulesets in PhpStorm

In wp-dev-lib we have followed a convention of naming our project-specific PHP_CodeSniffer rulesets as phpcs.ruleset.xml. We named the ruleset files with “phpcs” in the filename to make it clear what kind of ruleset it is, and so that it would conflict with any other tool that may also want to use this name. Nevertheless, PHP_CodeSniffer … Continue reading Registering Project-specific PHP_CodeSniffer Rulesets in PhpStorm

Customize Posts v0.5 Released

We’re pleased to announce the v0.5 release of the Customize Posts plugin! Check out my rough release demo video: Key features in this release: Postmeta support A framework for registering postmeta types, adding controls, and previewing changes. Page template Changes to the page template can now be previewed, both in the Customizer and from the edit page admin screen. … Continue reading Customize Posts v0.5 Released