View wp-generate-script-bundle-manifest.php
<?php
/**
* Generate ordered list of scripts according to their dependencies and whether they are enqueued for the header or footer.
* This may be called in a Grunt task to obtain the list of assets to concatenate and minify.
* Usage: wp eval-file wp-generate-script-bundle-manifest.php
* Author: Weston Ruter, XWP
*/
wp_enqueue_scripts();
wp_scripts()->all_deps( wp_scripts()->queue );
View cache-bust-frontend-scripts-and-styles.php
<?php
define( 'ASSET_CACHE_INCREMENTOR', 'cachekey-' . time() ); // Source this from anywhere.
add_action( 'wp_enqueue_scripts', function() {
$assets = array_merge(
wp_scripts()->registered,
wp_styles()->registered
);
$core_version = get_bloginfo( 'version' );
View common-strings.txt
""
"%1$s (%2$s)"
"%1$s could not be created: %2$s"
"%1$s-%2$s"
"(no title)"
"A static page"
"Author"
"Change Image"
"Content"
"Content, title, and excerpt are empty."
View swfobject-references-by-extension.txt
plugins/activator
plugins/add-icons-to-sidebar-of-categories
plugins/add-icons-to-sidebar-of-categories-and-pages
plugins/apptha-banner
plugins/apptha-slider-gallery
plugins/arcadepress
plugins/asset-manager
plugins/blaze-slide-show-for-wordpress
plugins/bookshelf
plugins/bootstrap-buttons
View text-widgets-patched.js
/* global tinymce, switchEditors */
/* eslint consistent-this: [ "error", "control" ] */
wp.textWidgets = ( function( $ ) {
'use strict';
var component = {
dismissedPointers: [],
idBases: [ 'text' ]
};
View simple-access-control-workaround.php
<?php
/**
* Plugin Name: Simple Access Control Logggedin Text Widget Workaround
* Plugin URI: https://core.trac.wordpress.org/ticket/41540
* Description: Workaround for Simple Access Control plugin not extending Text widget properly.
* Author: Weston Ruter, XWP
* Author URI: https://make.xwp.co/
* Version: 0.1.0
* License: GPLv2+
*
View theme_page_templates-instances.txt
WordPress-Plugin-Directory-Slurper/plugins/branding/LolitaFramework/Configuration/Modules/Routes.php:50:add_filter('theme_page_templates', array($this, 'templates'), 10, 3);
WordPress-Plugin-Directory-Slurper/plugins/bs3-grid-builder/includes/page-templates/class-page-template.php:34:add_filter( 'theme_page_templates', array( $this, 'add_new_template' ) );
WordPress-Plugin-Directory-Slurper/plugins/clippp-thumbnail-by-e3s/clippp-thumbnail.php:65:add_filter('theme_page_templates', [__CLASS__, 'page_templates'], 10, 3);
WordPress-Plugin-Directory-Slurper/plugins/data-generator/LolitaFramework/Configuration/Modules/Routes.php:50:add_filter('theme_page_templates', array($this, 'templates'), 10, 3);
WordPress-Plugin-Directory-Slurper/plugins/elementor/includes/page-settings/manager.php:114:add_filter( "theme_{$post_type}_templates", [ __CLASS__, 'add_page_templates' ], 10, 4 );
WordPress-Plugin-Directory-Slurper/plugins/eventbrite-api/inc/class-eventbrite-templates.php:18:add_filter( 'theme_page_templates', array(
View customize-snapshots-without-cap-changes.diff
diff --git a/php/class-post-type.php b/php/class-post-type.php
index 7a5ac99..9542453 100644
--- a/php/class-post-type.php
+++ b/php/class-post-type.php
@@ -74,7 +74,7 @@ class Post_Type {
add_action( 'load-revision.php', array( $this, 'suspend_kses_for_snapshot_revision_restore' ) );
add_filter( 'get_the_excerpt', array( $this, 'filter_snapshot_excerpt' ), 10, 2 );
add_filter( 'post_row_actions', array( $this, 'filter_post_row_actions' ), 10, 2 );
- add_filter( 'user_has_cap', array( $this, 'filter_user_has_cap' ), 10, 2 );
+// add_filter( 'user_has_cap', array( $this, 'filter_user_has_cap' ), 10, 2 );
View wpse-273548-controls.js
var wpse273548controls = (function ( api ) {
'use strict';
var component = {};
/**
* Init.
*
* @returns {void}
*/
View wpse-272991-customize-preview.css
/* Make sure edit shortcut for nab body class doesn't conflict with nav menu edit shortcut */
.customize-partial-edit-shortcut-nav_body_class > .customize-partial-edit-shortcut-button {
top: -30px;
}
/* Example styles */
body.foo nav {
border: solid 2px red !important;
}