Plugin Directory

Changeset 2887079


Ignore:
Timestamp:
03/26/2023 11:59:48 AM (3 years ago)
Author:
jodacame
Message:

Tagging version 1.4.5

Location:
auto-featured-image-auto-generated/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • auto-featured-image-auto-generated/trunk/index.php

    r2887075 r2887079  
    1212 */
    1313// Exit if accessed directly
    14 if ( !defined( 'ABSPATH' ) ) {
     14if (!defined('ABSPATH'))
     15{
    1516    exit;
    1617}
     
    1819 * Define plugin constants
    1920 */
    20 define( 'ATFIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    21 define( 'ATFIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    22 define( 'ATFIT_PLUGIN_FILE', __FILE__ );
    23 define( 'ATFIT_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    24 define( 'ATFIT_PLUGIN_VERSION', '1.4.4' );
    25 define( 'ATFIT_PLUGIN_SLUG', 'auto-featured-image-auto-generated' );
    26 define( 'ATFIT_PLUGIN_TEXT_DOMAIN', 'auto-featured-image-auto-generated' );
    27 define( 'ATFIT_PLUGIN_NAME', 'Auto Featured Image (Auto Generated)' );
     21define('ATFIT_PLUGIN_DIR', plugin_dir_path(__FILE__));
     22define('ATFIT_PLUGIN_URL', plugin_dir_url(__FILE__));
     23define('ATFIT_PLUGIN_FILE', __FILE__);
     24define('ATFIT_PLUGIN_BASENAME', plugin_basename(__FILE__));
     25define('ATFIT_PLUGIN_VERSION', '1.4.5');
     26define('ATFIT_PLUGIN_SLUG', 'auto-featured-image-auto-generated');
     27define('ATFIT_PLUGIN_TEXT_DOMAIN', 'auto-featured-image-auto-generated');
     28define('ATFIT_PLUGIN_NAME', 'Auto Featured Image (Auto Generated)');
    2829// Load text domain
    29 add_action( 'plugins_loaded', function () {
    30     load_plugin_textdomain( 'auto-featured-image-auto-generated', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    31 } );
     30add_action('plugins_loaded', function ()
     31{
     32    load_plugin_textdomain('auto-featured-image-auto-generated', false, dirname(plugin_basename(__FILE__)) . '/languages/');
     33});
    3234require_once ATFIT_PLUGIN_DIR . 'freemius.php';
    3335require_once ATFIT_PLUGIN_DIR . 'admin/Admin.class.php';
    3436require_once ATFIT_PLUGIN_DIR . 'admin/Trigger.class.php';
    35 if ( function_exists( 'ttfi_fs' ) ) {
    36     ttfi_fs()->set_basename( false, __FILE__ );
     37if (function_exists('ttfi_fs'))
     38{
     39    ttfi_fs()->set_basename(false, __FILE__);
    3740}
    3841ATFIT_Admin::instance();
    3942ATFIT_Trigger::instance();
    40 ttfi_fs()->add_action( 'after_uninstall', 'atfit_uninstall' );
     43ttfi_fs()->add_action('after_uninstall', 'atfit_uninstall');
    4144function atfit_uninstall()
    4245{
    43     $settings = get_option( 'atfit_settings' );
     46    $settings = get_option('atfit_settings');
    4447    $action = $settings['on_uninstall'];
    45     if ( $action == 'delete' ) {
    46         delete_option( 'atfit_settings' );
     48    if ($action == 'delete')
     49    {
     50        delete_option('atfit_settings');
    4751    }
    4852}
  • auto-featured-image-auto-generated/trunk/readme.txt

    r2887075 r2887079  
    66Tested up to: 6.1.1
    77Requires PHP: 6.0
    8 Stable tag: 1.4.4
     8Stable tag: 1.4.5
    99License: GPLv2 or later
    1010
Note: See TracChangeset for help on using the changeset viewer.