Skip to content

Commit 864cc6e

Browse files
Merge pull request #51 from asdfdotdev/development
Update for v5.7 and Fix Rebrandly API
2 parents b633414 + c203eb3 commit 864cc6e

11 files changed

Lines changed: 119 additions & 80 deletions

File tree

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
php-versions: [ '7.4' ]
33-
wordpress-versions: [ '5.6' ]
33+
wordpress-versions: [ '5.7' ]
3434
operating-system: [ ubuntu-20.04 ]
3535
env:
3636
UTMDC_BITLY_API: ${{secrets.UTMDC_BITLY_API}}

.github/workflows/code-styles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
php-versions: [ '7.4' ]
21-
wordpress-versions: [ '5.6' ]
21+
wordpress-versions: [ '5.7' ]
2222
operating-system: [ ubuntu-20.04 ]
2323

2424
steps:

.github/workflows/phpunit-tests-7.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
php-versions: [ '7.4', '7.3' ]
33-
wordpress-versions: [ 'nightly', '5.6', '5.5', '5.4' ]
33+
wordpress-versions: [ 'nightly', '5.7', '5.6', '5.5', '5.4' ]
3434
operating-system: [ ubuntu-18.04 ]
3535
env:
3636
UTMDC_BITLY_API: ${{secrets.UTMDC_BITLY_API}}

README.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: analytics, utm codes, analytics, google analytics, campaign marketing, lin
55
Requires at least: 4.7.0
66
Tested up to: 5.7
77
Requires PHP: 5.6.0
8-
Stable tag: 1.7.4
8+
Stable tag: 1.7.5
99
License: GPLv2
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -97,6 +97,12 @@ That isn't a question. But thank you.
9797

9898
== Changelog ==
9999

100+
= 1.7.5 =
101+
102+
- Supports WordPress v5.7
103+
- Adds important fix for rebrandly custom domain API response sanitation
104+
- Update dependencies
105+
100106
= 1.7.4 =
101107

102108
- Supports WordPress v5.6

classes/shorten/class-bitly.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function shorten( $data, $query_string ) {
9191
}
9292

9393
if ( filter_var( $response_url, FILTER_VALIDATE_URL ) ) {
94-
$this->response = esc_url( wp_unslash( $body->link ) );
94+
$this->response = esc_url( wp_unslash( $response_url ) );
9595
}
9696
} elseif ( 403 === $response_code ) {
9797
$this->error_code = 4030;

classes/shorten/class-rebrandly.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ function( $domain ) {
169169

170170
if ( $is_active && $dns_verified ) {
171171
return array(
172-
'id' => $domain->id,
173-
'full_name' => $domain->fullName,
172+
'id' => sanitize_text_field( wp_unslash( $domain->id ) ),
173+
'full_name' => sanitize_text_field( wp_unslash( $domain->fullName ) ),
174174
);
175175
}
176176
},

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asdfdotdev/utm.codes",
3-
"version": "1.7.4",
3+
"version": "1.7.5",
44
"description": "A plugin that makes building analytics friendly links quick and easy.",
55
"type": "wordpress-plugin",
66
"require-dev": {

languages/utm-dot-codes.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Copyright (C) 2020 Chris Carlevato
1+
# Copyright (C) 2021 Chris Carlevato
22
# This file is distributed under the same license as the utm.codes plugin.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: utm.codes 1.7.4\n"
5+
"Project-Id-Version: utm.codes 1.7.5\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/_utm-dot-codes\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2020-12-24T20:55:18+00:00\n"
12+
"POT-Creation-Date: 2021-04-02T22:42:17+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.4.0\n"
1515
"X-Domain: utm-dot-codes\n"

0 commit comments

Comments
 (0)