⏪ rollback: Remove updater
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user