Skip to content

Commit

Permalink
Fix function not always declared
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsimoxx committed Apr 15, 2024
1 parent 0af4da0 commit 6ab51e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/UpdateClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author: Simone Fioravanti
* Author URI: https://software.gieffeedizioni.it
* API Version: 2.0.0
* Last modified on Update Manager release: 2.5.2
* Last modified on Update Manager release: 2.5.3
* -----------------------------------------------------------------------------
* This is free software released under the terms of the General Public License,
* version 2, or later. It is distributed WITHOUT ANY WARRANTY; without even the
Expand Down Expand Up @@ -103,10 +103,10 @@ private function __construct() {
];

// Should directory take over?
include_once ABSPATH.'wp-admin/includes/plugin.php';
if (
USE_DIRECTORY &&
version_compare(function_exists('classicpress_version') ? classicpress_version() : '0', '2', '>=') &&
function_exists('is_plugin_active') &&
is_plugin_active('classicpress-directory-integration/classicpress-directory-integration.php')
) {
return;
Expand Down
2 changes: 1 addition & 1 deletion codepotent-update-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* -----------------------------------------------------------------------------
* Plugin Name: Update Manager
* Description: Painlessly push updates to your ClassicPress plugin users! Serve updates from GitHub, your own site, or somewhere in the cloud. 100% integrated with the ClassicPress update process; slim and performant.
* Version: 2.5.2
* Version: 2.5.3
* Requires PHP: 5.6
* Requires CP: 1.0
* Author: Simone Fioravanti
Expand Down

0 comments on commit 6ab51e6

Please sign in to comment.