Skip to content

Commit 2884716

Browse files
committed
v1.4.14 take two
1 parent ab1c231 commit 2884716

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/sync-wporg-assets.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Sync assets with wordpress.org
22

33
on:
4-
push:
5-
paths:
6-
- 'readme.txt'
7-
- '.wordpress-org/**'
4+
workflow_dispatch:
85

96
jobs:
107
run:

includes/Admin/Updaters/Pro_Plugin_Updater.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,12 @@ public function plugin_information() {
542542
*/
543543
private function maybe_add_upgrade_notice() {
544544
$license_status = $this->check_license_status();
545+
546+
// Check if $update_data is an object and convert to an array if so.
547+
if ( is_object( $license_status ) ) {
548+
$license_status = get_object_vars( $license_status );
549+
}
550+
545551
$active = isset( $license_status['activated'] ) && $license_status['activated'];
546552
$inactive = isset( $license_status['activated'] ) && ! $license_status['activated'];
547553
$expired = isset( $license_status['expired'] ) && $license_status['expired'];
@@ -575,6 +581,12 @@ private function maybe_add_upgrade_notice() {
575581
*/
576582
public function license_status_notice() {
577583
$license_status = $this->check_license_status();
584+
585+
// Check if $update_data is an object and convert to an array if so.
586+
if ( is_object( $license_status ) ) {
587+
$license_status = get_object_vars( $license_status );
588+
}
589+
578590
$active = isset( $license_status['activated'] ) && $license_status['activated'];
579591
$inactive = isset( $license_status['activated'] ) && ! $license_status['activated'];
580592
$expired = isset( $license_status['expired'] ) && $license_status['expired'];

0 commit comments

Comments
 (0)