Skip to content

Commit

Permalink
Fixes wrong constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Lannoy committed Nov 23, 2024
1 parent 3351d22 commit 7de55b3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to **Traffic** are documented in this *changelog*.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **Traffic** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.1] - 2024-11-23

### Fixed
- There's an 'undefined constant' error while trying to update.

## [3.1.0] - 2024-11-22

Expand Down
8 changes: 4 additions & 4 deletions includes/plugin/class-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
*/
class Updater {

private $name = POKM_PRODUCT_NAME;
private $name = TRAFFIC_PRODUCT_NAME;

private $slug = POKM_SLUG;
private $slug = TRAFFIC_SLUG;

private $version = POKM_VERSION;
private $version = TRAFFIC_VERSION;

private $product = POKM_PRODUCT_URL;
private $product = TRAFFIC_PRODUCT_URL;

/**
* Initializes the class, set its properties and performs
Expand Down
4 changes: 2 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
define( 'TRAFFIC_PRODUCT_SHORTNAME', 'Traffic' );
define( 'TRAFFIC_PRODUCT_ABBREVIATION', 'traffic' );
define( 'TRAFFIC_SLUG', 'traffic' );
define( 'TRAFFIC_VERSION', '3.1.0' );
define( 'TRAFFIC_VERSION', '3.1.1' );
define( 'TRAFFIC_API_VERSION', '2' );
define( 'TRAFFIC_CODENAME', '"-"' );

Expand All @@ -28,4 +28,4 @@
} else {
define( 'TRAFFIC_INBOUND_CHRONO', microtime( true ) );
}
}
}
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: api, analytics, reports, rest-api, statistics
Requires at least: 6.2
Requires PHP: 8.1
Tested up to: 6.7
Stable tag: 3.1.0
Stable tag: 3.1.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
2 changes: 1 addition & 1 deletion traffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Traffic
* Plugin URI: https://perfops.one/traffic
* Description: Full featured monitoring & analytics for WordPress APIs.
* Version: 3.1.0
* Version: 3.1.1
* Requires at least: 6.2
* Requires PHP: 8.1
* Author: Pierre Lannoy / PerfOps One
Expand Down

0 comments on commit 7de55b3

Please sign in to comment.