Plugin Directory

Changeset 3286656


Ignore:
Timestamp:
05/03/2025 07:44:30 AM (10 months ago)
Author:
th23
Message:

v6.0.3 release

  • fix: upgrade to th23 Admin class 1.7.0, removing some inconsistencies and ensuring proper escaping of output
Location:
th23-specials/tags/6.0.3
Files:
2 edited
10 copied

Legend:

Unmodified
Added
Removed
  • th23-specials/tags/6.0.3/inc/th23-admin-class.css

    r3286407 r3286656  
    100100  margin-left: 64px;
    101101}
     102@media screen and (min-width: 782px) {
     103  div.th23-admin-about .floating-right {
     104    float: right;
     105  }
     106  div.th23-admin-about .floating-right .separator-left {
     107    display: none;
     108  }
     109}
     110div.th23-admin-about .update-url {
     111  cursor: pointer;
     112}
    102113div.th23-admin-about a {
    103114  text-decoration: none;
  • th23-specials/tags/6.0.3/inc/th23-admin-class.php

    r3286407 r3286656  
    33th23 Admin
    44Basic admin functionality
    5 Version: 1.6.0
     5Version: 1.7.0
    66
    77Coded 2024-2025 by Thorsten Hartmann (th23)
     
    1616}
    1717
    18 if(!class_exists('th23_admin_v160')) {
    19     class th23_admin_v160 {
     18if(!class_exists('th23_admin_v170')) {
     19    class th23_admin_v170 {
    2020
    2121        private $parent;
     
    152152                return $res;
    153153            }
    154             // attempt to get, defaults back to WP.org repository if own repository is unreachable by returning $res
     154            // note: returning $res defaults to WP.org repo, if exists and alternative is unreachable - nevertheless return error message, as versions might differ
    155155            if(empty($remote = $this->update_request()) || !is_array($remote)) {
     156                $res = new stdClass();
     157                $res->slug = $this->parent->plugin['slug'];
     158                $res->name = $this->parent->plugin['data']['Name'];
     159                /* translators: parses in plugin information source url */
     160                $res->sections = array('other_notes' => '<div class="notice notice-error"><p>' . sprintf($this->__('Failed to load plugin information from %s'), '<code>' . $this->parent->plugin['update_url'] . '</code>') . '</p></div>');
    156161                return $res;
    157162            }
  • th23-specials/tags/6.0.3/readme.txt

    r3286407 r3286656  
    55Requires at least: 4.2
    66Tested up to: 6.8
    7 Stable tag: 6.0.0
     7Stable tag: 6.0.3
    88Requires PHP: 8.0
    99License: GPL-3.0
     
    1111
    1212
    13 Essentials to customize WordPress via simple settings, SMTP, title highlight, category selection, more separator, sticky posts, remove clutter, ...
     13Essentials to customize Wordpress via simple settings, SMTP, title highlight, category selection, more separator, sticky posts, remove clutter, ...
    1414
    1515
    1616== Description ==
    1717
    18 Customize your WordPress website even more to your needs via **simple admin settings** instead of code modifications.
     18Customize your Wordpress website even more to your needs via **simple admin settings** instead of code modifications.
    1919
    2020Setting up new websites from time to time I realized, that I keep using **similar sets of modifications over and over again**. This plugin gives you a wide range of modifications at hand **without any core or theme code changes** - making them persistent across updates or switching to another theme.
     
    4040= NOTE =
    4141
    42 Some options change important core functionality of WordPress - make sure you **properly test your website** before usage in production environment!
     42Some options change important core functionality of Wordpress - make sure you **properly test your website** before usage in production environment!
    4343
    4444
     
    5252== Frequently Asked Questions ==
    5353
    54 = Is there a way to identify **existing posts / pages that do not comply** with the one category only requirement or that are missing the "read more" block / tag? =
     54= Is there a way to identify existing posts / pages that do not comply with the one category only requirement or that are missing the "read more" block / tag? =
    5555
    5656Yes, there are links in the descriptions on the th23 Specials settings page, **next to the respective option** to search for "non-compliant" posts / pages.
     
    5858Upon a click on this link you will see all currently non-compliant posts / pages. You can modify these by clicking on their titles, which loads them into your default editor.
    5959
    60 = Some **settings seem to have no effect** - eg oEmbed features are still active depsite deactivated? =
     60= Some settings seem to have no effect - eg oEmbed features are still active depsite deactivated? =
    6161
    6262This might be happening as **some options can be "overruled"** by settings by your theme. For settings that might be affected, please see the description on the settings page.
     
    7474== Changelog ==
    7575
     76= v6.0.3 =
     77
     78* fix: upgrade to th23 Admin class 1.7.0, removing some inconsistencies
     79
     80= v6.0.2 =
     81
     82* enhancement: upgrade to th23 Plugin Info class 1.0.0
     83* fix: upgrade to th23 Admin class 1.6.2
     84
     85= v6.0.1 =
     86
     87* fix: update th23 Admin class to v1.6.1
     88* fix: typos and wording adjustments
     89
    7690= v6.0.0 =
    7791
     
    8195== Upgrade Notice ==
    8296
    83 = v6.0.0 =
     97= v6.0.3 =
    8498
    8599* n/a
     100
     101= v6.0.2 =
     102
     103* n/a
     104
     105= v6.0.1 =
     106
     107* n/a
  • th23-specials/tags/6.0.3/th23-specials-admin.php

    r3286407 r3286656  
    11<?php
    2 /*
    3 th23 Specials
    4 Admin area
    5 
    6 Coded 2014-2025 by Thorsten Hartmann (th23)
    7 https://th23.net/
    8 */
    92
    103// Security - exit if accessed directly
     
    2922            'permission' => 'manage_options',
    3023        );
    31         // icon: "square" 48 x 48px (footer) / "horizontal" 36px height (header, width irrelevant) / both (resized if larger)
     24        // icons "square" 48 x 48px (footer) and "horizontal" 36px height (header, width irrelevant) / both (resized if larger)
    3225        $this->plugin['icon'] = array('square' => 'img/icon-square.png', 'horizontal' => 'img/icon-horizontal.png');
    3326        $this->plugin['support_url'] = 'https://github.com/th23x/th23-specials/issues';
     27        $this->plugin['requirement_notices'] = array();
    3428
    3529        // Load and setup required th23 Admin class
    3630        if(file_exists($this->plugin['dir_path'] . '/inc/th23-admin-class.php')) {
    3731            require($this->plugin['dir_path'] . '/inc/th23-admin-class.php');
    38             $this->admin = new th23_admin_v160($this);
     32            $this->admin = new th23_admin_v170($this);
    3933        }
    4034        if(!empty($this->admin)) {
    4135            add_action('init', array(&$this, 'setup_admin_class'));
     36            // alternative update source for non-WP.org hosted plugin
     37            // important: remove following two lines for WP.org-hosted plugin
     38            $this->plugin['update_url'] = 'https://github.com/th23x/th23-specials/releases/latest/download/update.json';
     39            add_filter('site_transient_update_plugins', array(&$this->admin, 'update_download'));
    4240        }
    4341        else {
     
    9896        // note: need to populate $this->i18n earliest at init hook to get user locale
    9997        $this->i18n = array(
     98            'Plugin' => __('Plugin', 'th23-specials'),
    10099            'Settings' => __('Settings', 'th23-specials'),
    101100            /* translators: parses in plugin version number */
     
    111110            /* translators: parses in plugin author name / link */
    112111            'By %s' => __('By %s', 'th23-specials'),
     112            'View details' => __('View details', 'th23-specials'),
    113113            'Visit plugin site' => __('Visit plugin site', 'th23-specials'),
    114114            'Error' => __('Error', 'th23-specials'),
     
    302302        // disable_categories
    303303
    304         $description = __('Specified categories are not available for posts to be assigned in editor - list of respective IDs, separated by comma, empty for no restrictions', 'th23-specials');
    305         $description .= '<br />' . __('Note: See notes for option above', 'th23-specials');
    306304        $this->plugin['options']['disable_categories'] = array(
    307305            'render' => function() { return '<div>' . __('Disabled categories for posts', 'th23-specials') . '</div>'; },
    308306            'default' => '',
    309             'description' => $description,
     307            'description' => __('Specified categories are not available for posts to be assigned in editor - list of respective IDs, separated by comma, empty for no restrictions', 'th23-specials') . '<br />' . __('Note: See notes for option above', 'th23-specials'),
    310308        );
    311309
  • th23-specials/tags/6.0.3/th23-specials.php

    r3286407 r3286656  
    22/*
    33Plugin Name: th23 Specials
    4 Description: Adjust WordPress behaviour to own needs
    5 Version: 6.0.0
    6 Author: Thorsten Hartmann (th23)
    7 Author URI: https://th23.net
    8 License: GPL-3.0-or-later
    9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
     4Description: Essentials to customize Wordpress via simple settings, SMTP, title highlight, category selection, more separator, sticky posts, remove clutter, ...
     5Plugin URI: https://github.com/th23x/th23-specials
     6
     7Author: Thorsten (th23)
     8Author URI: https://thorstenhartmann.de
     9Author IMG: https://thorstenhartmann.de/avatar.png
     10
     11License: GPL-3.0
     12License URI: https://github.com/th23x/th23-specials/blob/main/LICENSE
     13
     14Version: 6.0.3
     15
     16Requires at least: 4.2
     17Tested up to: 6.8
     18Requires PHP: 8.0
     19
    1020Text Domain: th23-specials
    1121Domain Path: /lang
    12 
    13 Coded 2014-2025 by Thorsten Hartmann (th23)
    14 https://th23.net/
    1522*/
    1623
     
    3441        $this->plugin['basename'] = plugin_basename($this->plugin['file']);
    3542        $this->plugin['dir_url'] = plugin_dir_url($this->plugin['file']);
    36         $this->plugin['version'] = '6.0.0';
     43        $this->plugin['version'] = '6.0.3';
    3744
    3845        // Load plugin options
Note: See TracChangeset for help on using the changeset viewer.