Plugin Directory

Changeset 2586108


Ignore:
Timestamp:
08/20/2021 05:06:35 PM (5 years ago)
Author:
bradparbs
Message:

Update to version 1.1.0 from GitHub

Location:
colors
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • colors/tags/1.1.0/colors.php

    r2585452 r2586108  
    33 * Plugin Name: Colors
    44 * Description: Disable admin color schemes.
    5  * Version:     1.0.1
     5 * Version:     1.1.0
    66 * Author:      Brad Parbs
    77 * Author URI:  https://bradparbs.com/
    88 * License:     GPLv2
    9  * Text Domain: draft
     9 * Text Domain: colors
    1010 * Domain Path: /lang/
    1111 *
     
    1515namespace Colors;
    1616
    17 use WP_Query;
     17add_action( 'plugins_loaded', __NAMESPACE__ . '\\disable_colors' );
    1818
    19 // Add new dashboard widget with list of draft posts.
    20 add_action(
    21     'plugins_loaded',
    22     function () {
     19/**
     20 * Disable admin color schemes.
     21 */
     22function disable_colors() {
     23
     24    if ( apply_filters( 'colors_should_disable_admin_colors', true ) ) {
    2325        remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
    2426    }
    25 );
     27}
  • colors/tags/1.1.0/readme.txt

    r2585452 r2586108  
    44Requires at least: 5.2
    55Tested up to: 5.8
    6 Stable tag: 1.0.1
     6Stable tag: 1.1.0
    77License: GPLv2 or later
    88Requires PHP: 5.6
    99
    10 A WordPress plugin to disable admin color schemes
     10A WordPress plugin to disable admin color schemes.
    1111
    1212== Description ==
    1313
    1414Disable admin color schemes for all users.
     15
     16== Availiable filters ==
     17
     18`colors_should_disable_admin_colors` - Whether or not to disable admin color schemes, defaults to true.
     19
     20== Changelog ==
     21
     22= 1.1.0 =
     23
     24* Added filters
     25
     26= 1.0.1 =
     27
     28* Initial release
  • colors/trunk/colors.php

    r2585452 r2586108  
    33 * Plugin Name: Colors
    44 * Description: Disable admin color schemes.
    5  * Version:     1.0.1
     5 * Version:     1.1.0
    66 * Author:      Brad Parbs
    77 * Author URI:  https://bradparbs.com/
    88 * License:     GPLv2
    9  * Text Domain: draft
     9 * Text Domain: colors
    1010 * Domain Path: /lang/
    1111 *
     
    1515namespace Colors;
    1616
    17 use WP_Query;
     17add_action( 'plugins_loaded', __NAMESPACE__ . '\\disable_colors' );
    1818
    19 // Add new dashboard widget with list of draft posts.
    20 add_action(
    21     'plugins_loaded',
    22     function () {
     19/**
     20 * Disable admin color schemes.
     21 */
     22function disable_colors() {
     23
     24    if ( apply_filters( 'colors_should_disable_admin_colors', true ) ) {
    2325        remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
    2426    }
    25 );
     27}
  • colors/trunk/readme.txt

    r2585452 r2586108  
    44Requires at least: 5.2
    55Tested up to: 5.8
    6 Stable tag: 1.0.1
     6Stable tag: 1.1.0
    77License: GPLv2 or later
    88Requires PHP: 5.6
    99
    10 A WordPress plugin to disable admin color schemes
     10A WordPress plugin to disable admin color schemes.
    1111
    1212== Description ==
    1313
    1414Disable admin color schemes for all users.
     15
     16== Availiable filters ==
     17
     18`colors_should_disable_admin_colors` - Whether or not to disable admin color schemes, defaults to true.
     19
     20== Changelog ==
     21
     22= 1.1.0 =
     23
     24* Added filters
     25
     26= 1.0.1 =
     27
     28* Initial release
Note: See TracChangeset for help on using the changeset viewer.