Plugin Directory

Changeset 3075355


Ignore:
Timestamp:
04/23/2024 04:33:21 AM (2 years ago)
Author:
alpipego
Message:

Update version in plugin php header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ultimate-410/tags/1.1.5/ultimate-410.php

    r2984731 r3075355  
    33 * Plugin Name: Ultimate 410
    44 * Description: Ultimate 410 HTTP Status Code plugin.
    5  * Version: 1.1.4
     5 * Version: 1.1.5
    66 * Author: tinyweb, 7iebenschlaefer, alpipego
    77 * Author URI: https://tinyweb.com/
     
    2121use TinyWeb\Ultimate410\UrlTable;
    2222
    23 $autoloader = file_exists(__DIR__.'/vendor/autoload.php')
    24     ? __DIR__.'/vendor/autoload.php'
    25     : __DIR__.'/lib/autoload.php';
     23$autoloader = file_exists(__DIR__ . "/vendor/autoload.php")
     24    ? __DIR__ . "/vendor/autoload.php"
     25    : __DIR__ . "/lib/autoload.php";
    2626
    2727require_once $autoloader;
     
    2929$customTable = new CustomTable();
    3030
    31 add_action('wp_ajax_delete_410_entry', [$customTable, 'ajaxDeleteEntries']);
    32 add_action('wp_ajax_delete_410_all', [$customTable, 'ajaxDeleteAllEntries']);
    33 add_action('wp_ajax_add_410_entry', [$customTable, 'ajaxAddEntries']);
     31add_action("wp_ajax_delete_410_entry", [$customTable, "ajaxDeleteEntries"]);
     32add_action("wp_ajax_delete_410_all", [$customTable, "ajaxDeleteAllEntries"]);
     33add_action("wp_ajax_add_410_entry", [$customTable, "ajaxAddEntries"]);
    3434
    3535if (is_admin()) {
     
    4141    $page = new OptionsPage($pluginPath);
    4242
    43     add_action('current_screen', function (WP_Screen $screen) use ($customTable, $page) {
    44         if ($screen->base !== 'settings_page_'. $page->getId()) {
     43    add_action("current_screen", function (WP_Screen $screen) use (
     44        $customTable,
     45        $page
     46    ) {
     47        if ($screen->base !== "settings_page_" . $page->getId()) {
    4548            return;
    4649        }
     
    5053    // register CSV upload.
    5154    $uploadSection = new UploadSection($page, $pluginPath);
    52     $uploadField   = new UploadOption($page, $uploadSection, $customTable, $pluginPath);
     55    $uploadField = new UploadOption(
     56        $page,
     57        $uploadSection,
     58        $customTable,
     59        $pluginPath
     60    );
    5361
    5462    // register manual input.
    5563    $inputSection = new InputSection($page, $pluginPath);
    56     $regexField   = new InputOption($page, $inputSection, $customTable, $pluginPath);
     64    $regexField = new InputOption(
     65        $page,
     66        $inputSection,
     67        $customTable,
     68        $pluginPath
     69    );
    5770
    58     add_action('plugins_loaded', [$customTable, 'create']);
     71    add_action("plugins_loaded", [$customTable, "create"]);
    5972}
    6073
Note: See TracChangeset for help on using the changeset viewer.