From edee4d1fb8977bede3a2ef84efe7f6ae5c7d5ed8 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Thu, 13 Feb 2025 14:30:33 -0600 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20rollback:=20Remove=20updater?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 --- resource-filter.php | 25 +------------------------ 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/README.md b/README.md index defea89..d16f9ca 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,6 @@ The plugin is designed to work out of the box with minimal configuration. Howeve - ~~pagination~~ ## Changelog -### 1.5.0 - 2025-02-13 -- Added repo update feature - ### 1.4.0 - 2025-02-13 - Added admin configuration page diff --git a/resource-filter.php b/resource-filter.php index 1bcc633..a5ea3ab 100644 --- a/resource-filter.php +++ b/resource-filter.php @@ -2,37 +2,14 @@ /** * Plugin Name: Content Filter * Description: Adds filtering for the content typed by various taxonomies. - * Version: 1.5.0 + * Version: 1.4.0 * Author: Keith Solomon */ if (!defined('ABSPATH')) { exit; } // Prevent direct access -require_once plugin_dir_path(__FILE__) . 'includes/updater.php'; require_once plugin_dir_path(__FILE__) . 'includes/template-loader.php'; -function cfInit() { - if (is_admin()) { // note the use of is_admin() to double check that this is happening in the admin - $config = array( - 'slug' => plugin_basename(__FILE__), // this is the slug of your plugin - 'proper_folder_name' => 'plugin-name', // this is the name of the folder your plugin lives in - 'api_url' => 'https://github.com/Vincent-Design-Inc/resource-filter', // the GitHub API url of your GitHub repo - 'raw_url' => 'https://raw.github.com/Vincent-Design-Inc/resource-filter/master', // the GitHub raw url of your GitHub repo - 'github_url' => 'https://github.com/Vincent-Design-Inc/resource-filter', // the GitHub url of your GitHub repo - 'zip_url' => 'https://github.com/Vincent-Design-Inc/resource-filter/zipball/master', // the zip url of the GitHub repo - 'sslverify' => true, // whether WP should check the validity of the SSL cert when getting an update, see https://github.com/jkudish/WordPress-GitHub-Plugin-Updater/issues/2 and https://github.com/jkudish/WordPress-GitHub-Plugin-Updater/issues/4 for details - 'requires' => '6.0', // which version of WordPress does your plugin require? - 'tested' => '6.7.2', // which version of WordPress is your plugin tested up to? - 'readme' => 'README.md', // which file to use as the readme for the version number - 'access_token' => '', // Access private repositories by authorizing under Plugins > GitHub Updates when this example plugin is installed - ); - - new WpGitHubUpdater($config); - } -} - -add_action('init', 'cfInit'); - class ContentFilterPlugin { /** Registers the necessary actions and filters for the Content Filter plugin. *