Skip to content

Commit

Permalink
Merge branch 'release/1.9.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jan 14, 2022
2 parents f00e9eb + 3dfc7f8 commit ab76f33
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions classes/YoastModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ public function admin_print_scripts() {
<script type="text/javascript">
( function( open ) {
XMLHttpRequest.prototype.open = function( method, url ) {
const url_object = new URL( url );
if ( url.startsWith( 'https://my.yoast.com/' ) ) {
const url_object = new URL( url );

if ( 'my.yoast.com' === url_object.host ) {
url_object.searchParams.set( 'site', <?php echo \wp_json_encode( PRONAMIC_CLIENT_YOAST_URL ); ?> );

arguments[1] = url_object.toString();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pronamic-client",
"version": "1.9.2",
"version": "1.9.3",
"description": "WordPress plugin for Pronamic clients.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion pronamic-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: https://www.pronamic.eu/plugins/pronamic-client/
Description: WordPress plugin for Pronamic clients.
Version: 1.9.2
Version: 1.9.3
Requires at least: 3.0
Author: Pronamic
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: pronamic, remcotolsma
Tags: pronamic, client, update, plugin, theme, extension, plugins, themes, extensions
Requires at least: 3.0
Tested up to: 5.6.1
Stable tag: 1.9.2
Stable tag: 1.9.3

WordPress plugin for Pronamic clients.

Expand All @@ -28,6 +28,9 @@ WordPress installation and then activate the Plugin from Plugins page.

== Changelog ==

= 1.9.3 =
* Check if URL startsWith with specific URL, instead of `URL( url ).host` for relative URLs support.

= 1.9.2 =
* Only override `XMLHttpRequest.prototype.open` on post edit screen.

Expand Down

0 comments on commit ab76f33

Please sign in to comment.