Skip to content

Commit

Permalink
Merge pull request #39 from dartiss/develop
Browse files Browse the repository at this point in the history
Version 1.5.8
  • Loading branch information
dartiss authored Feb 3, 2023
2 parents 2c5926b + 07dd9ca commit ffcae7a
Show file tree
Hide file tree
Showing 6 changed files with 682 additions and 664 deletions.
74 changes: 41 additions & 33 deletions artiss-transient-cleaner.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
<?php
/*
Plugin Name: Transient Cleaner
Plugin URI: https://github.com/dartiss/transient-cleaner
Description: Housekeep expired transients from your options table.
Version: 1.5.7
Author: David Artiss
Author URI: https://artiss.blog
Text Domain: artiss-transient-cleaner
*/

/**
* Artiss Transient Cleaner
*
* Main code - include various functions
*
* @package Artiss-Transient-Cleaner
* @since 1.2
*/

$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';

// Include all the various functions

include_once( $functions_dir . 'clean-transients.php' ); // General configuration set-up

include_once( $functions_dir . 'shared-functions.php' ); // Assorted shared functions

if ( is_admin() ) {

include_once( $functions_dir . 'set-admin-config.php' ); // Administration configuration

}
<?php
/**
* Transient Cleaner
*
* @package Artiss-Transient-Cleaner
* @author David Artiss
* @license GPL-2.0-or-later
*
* Plugin Name: Transient Cleaner
* Plugin URI: https://github.com/dartiss/transient-cleaner
* Description: 🧼 Clear expired transients from your options table.
* Version: 1.5.8
* Requires at least: 4.6
* Requires PHP: 7.4
* Author: David Artiss
* Author URI: https://artiss.blog
* Text Domain: artiss-transient-cleaner
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume
* that you can use any other version of the GPL.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';

// Include all the various functions.

require_once $functions_dir . 'clean-transients.php'; // General configuration set-up.

require_once $functions_dir . 'shared-functions.php'; // Assorted shared functions.

if ( is_admin() ) {

include_once $functions_dir . 'set-admin-config.php'; // Administration configuration.

}
Loading

0 comments on commit ffcae7a

Please sign in to comment.