This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://YOUR.SITE/xmlrpc.php' -H 'User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; Android SDK built for x86 Build/OSR1.180418.019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 Mobile Safari/537.36 wp-android/alpha-188' -H 'Content-Type: text/xml; charset=utf-8' -H 'Connection: Keep-Alive' -H 'Accept-Encoding: gzip' --data-binary $'<?xml version=\'1.0\' ?><methodCall><methodName>wp.getOptions</methodName><params><param><value><string>1</string></value></param><param><value><string>USERNAME</string></value></param><param><value><string>PASSWORD</string></value></param><param><value><array><data><value><string>software_version</string></value><value><string>post_thumbnail</string></value><value><string>default_comment_status</string></value><value><string>jetpack_client_id</string></value><value><string>blog_public</string></value><value><string>home_url</string></value><value><string>admin_url</string></value><value><string>login_url</string></value><value><string>blog_title< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/babel.config.js b/babel.config.js | |
index d9be17f131..cb96a7eb2e 100644 | |
--- a/babel.config.js | |
+++ b/babel.config.js | |
@@ -55,6 +55,16 @@ const config = { | |
{ | |
test: './client/gutenberg/extensions', | |
plugins: [ | |
+ [ | |
+ '@wordpress/babel-plugin-makepot', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/shortcodes/gist.php b/modules/shortcodes/gist.php | |
index 27e1f00..39ebd4d 100644 | |
--- a/modules/shortcodes/gist.php | |
+++ b/modules/shortcodes/gist.php | |
@@ -30,23 +30,29 @@ function github_gist_shortcode( $atts, $content = '' ) { | |
if ( ! $id ) | |
return '<!-- Invalid Gist ID -->'; | |
- $embed_url = "{$id}.json"; | |
+ if ( ! empty( $atts['file'] ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function($, undefined) { | |
gistStylesheetLoaded = false; | |
var gistEmbed = function( data ) { | |
$('.gist-oembed').each(function(i, el) { | |
var url = 'https://gist.github.com/' + $(el).data('gist'); | |
$.ajax({ | |
url: url, | |
dataType: 'jsonp' | |
}).done(function( response ) { |