View add-customize-changeset-locked-notification-dismiss-button.js
wp.customize.notifications.bind( 'add', function( notification ) {
if ( 'changeset_locked' === notification.code ) {
notification.render = (function( render ) {
return function() {
var li = render.call( notification ), button;
button = jQuery( '<button type="button" class="button button-secondary">Dismiss</button>' );
button.on( 'click', function() {
notification.parent.remove( notification.code );
} );
li.find( '.action-buttons' ).append( button );
View customize-select-multiple.php
<?php
// @todo The following does not work.
add_action( 'customize_register', function( WP_Customize_Manager $wp_customize ) {
$choices = array(
'foo' => __( 'Foo' ),
'bar' => __( 'Bar' ),
'baz' => __( 'Baz' ),
);
View wp-42573.php
<?php
/**
* Plugin name: WP Trac #42573: Fix for theme template file caching.
* Description: Flush the theme file cache each time the admin screens are loaded which uses the file list.
* Plugin URI: https://core.trac.wordpress.org/ticket/42573
* Author: Weston Ruter, XWP.
* Author URI: https://weston.ruter.net
*/
function wp_42573_fix_template_caching( WP_Screen $current_screen ) {
View wp-42574.php
<?php
/**
* Plugin name: WP Trac #42574: Fix for formal languages.
* Plugin URI: https://core.trac.wordpress.org/ticket/42574
* Author: Weston Ruter, XWP.
* Author URI: https://weston.ruter.net
*/
function wp_42574_fix_mejs_formal_languages( WP_Scripts $scripts ) {
$scripts->add_inline_script(
View phpcs.xml
<?xml version="1.0"?>
<ruleset name="WPSE 286375 Plugin">
<rule ref="WordPress-Core" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="wpse-286375,default" />
</properties>
</rule>
<rule ref="WordPress-Docs" />
View phpcs.xml
<?xml version="1.0"?>
<ruleset name="WPSE 286268 Plugin">
<rule ref="WordPress-Core" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="wpse-286268" />
</properties>
</rule>
<rule ref="WordPress-Docs" />
View trac-42489-test.sh
#!/bin/bash
set -e
set -x
wp db export /tmp/$(date "+%Y%m%dT%H%M%S").sql
wp db reset --yes
wp core install --url=http://src.wordpress-develop.dev/ --title="WordPress Develop" --admin_user=admin --admin_password=admin --admin_email=weston@xwp.co --skip-email
wp cache flush
wp --user=1 eval '
require_once( ABSPATH . "/wp-includes/class-wp-customize-manager.php" );
global $wp_customize;
View 4.9-pending-rc2-patches.diff
diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
index b888f610bb..d7d538739d 100644
--- src/wp-admin/css/customize-controls.css
+++ src/wp-admin/css/customize-controls.css
@@ -332,11 +332,6 @@ body.trashing #publish-settings {
margin-top: 10px;
}
-.customize-control.customize-control-date_time .date-time-fields .date-input,
-.customize-control.customize-control-date_time .date-time-fields .date-time-separator {
View picard.diff
diff --git a/functions.php b/functions.php
index 53a8d2a..e554773 100644
--- a/functions.php
+++ b/functions.php
@@ -152,40 +152,40 @@ function picard_get_json( $_post ) {
add_filter( 'json_prepare_post', 'picard_get_json' );
-function picard_api_init() {
- global $picard_api_comments;
View forward-vvv-ssh-command.sh
#!/bin/bash
$( dirname $0 )/vvv-ssh $( basename $0 ) $@