Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: analytics, utm codes, analytics, google analytics, campaign marketing, lin
Requires at least: 5.1.0
Tested up to: 6.8
Requires PHP: 7.1.0
Stable tag: 1.9.0
Stable tag: 1.9.1
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -99,6 +99,11 @@ That isn't a question. But thank you.

== Changelog ==

= 1.9.1 =
- Change usage of wp_remote_get() to wp_safe_remote_get()
- Change usage of wp_remote_post() to wp_safe_remote_post()
- Update dependencies

= 1.9.0 =
- Supports WordPress v6.6, 6.7, 6.8
- Update dependencies
Expand Down
4 changes: 2 additions & 2 deletions _test/tests/TestUtmDotCodesActivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function test_deactivation_hook_non_admin() {
public function test_wordpress_version_failure() {
global $wp_version;
$wp_version_actual = $wp_version;
$wp_version = 4.6;
$wp_version = 5.0;

wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );

Expand All @@ -184,7 +184,7 @@ public function test_wordpress_version_failure() {
$output = ob_get_flush();
ob_end_clean();
} catch ( Exception $exception ) {
$this->assertEquals( $exception->getMessage(), 'utm.codes plugin requires WordPress 4.7 or newer.' );
$this->assertEquals( $exception->getMessage(), 'utm.codes plugin requires WordPress 5.1.0 or newer.' );
}

$this->assertFalse( get_option( 'utmdc_version' ) );
Expand Down
2 changes: 1 addition & 1 deletion classes/class-utmdotcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ public function check_url_response() {
$args = array( 'sslverify' => false );
}

$url_check = wp_remote_get( $request_url, $args );
$url_check = wp_safe_remote_get( $request_url, $args );

if ( is_wp_error( $url_check ) ) {
$response['message'] = $url_check->get_error_messages();
Expand Down
2 changes: 1 addition & 1 deletion classes/shorten/class-bitly.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function shorten( $data, $query_string ) {
}

if ( '' !== $this->api_key ) {
$response = wp_remote_post(
$response = wp_safe_remote_post(
self::API_URL . '/shorten',
// Selective overrides of WP_Http() defaults.
array(
Expand Down
4 changes: 2 additions & 2 deletions classes/shorten/class-rebrandly.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function shorten( $data, $query_string ) {
);
}

$response = wp_remote_post(
$response = wp_safe_remote_post(
self::API_URL . '/links',
// Selective overrides of WP_Http() defaults.
array(
Expand Down Expand Up @@ -138,7 +138,7 @@ public function get_domains() {

if ( '' !== $this->api_key ) {

$response = wp_remote_get(
$response = wp_safe_remote_get(
self::API_URL . '/domains?' . http_build_query(
array(
'orderBy' => 'fullName',
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asdfdotdev/utm.codes",
"version": "1.9.0",
"version": "1.9.1",
"description": "A plugin that makes building analytics friendly links quick and easy.",
"type": "wordpress-plugin",
"require-dev": {
Expand Down
7 changes: 4 additions & 3 deletions languages/utm-dot-codes.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# This file is distributed under the GPL v2.
msgid ""
msgstr ""
"Project-Id-Version: utm.codes 1.9.0\n"
"Project-Id-Version: utm.codes 1.9.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/utm.codes\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2025-04-09T19:02:11+00:00\n"
"POT-Creation-Date: 2025-06-17T10:25:08+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Generator: WP-CLI 2.12.0\n"
"X-Domain: utm-dot-codes\n"

#. Plugin Name of the plugin
Expand Down Expand Up @@ -436,6 +436,7 @@ msgstr ""

#. translators: Placeholder in this string is the minimum WordPress version.
#: classes/class-utmdotcodesactivation.php:44
#, php-format
msgctxt "Placeholder is minimum WordPress version."
msgid "utm.codes plugin requires WordPress %s or newer."
msgstr ""
Loading