Plugin Directory

Changeset 2586108

Timestamp:
08/20/2021 05:06:35 PM (3 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.
    66 * Author:      Brad Parbs
    77 * Author URI:  https://bradparbs.com/
    88 * License:     GPLv2
    9  * Text Domain: draft
     9 * Text Domain:
    1010 * Domain Path: /lang/
    1111 *
     
    1515namespace Colors;
    1616
    17 use WP_Query;
     17;
    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.
    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
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
  • colors/trunk/colors.php

    r2585452 r2586108  
    33 * Plugin Name: Colors
    44 * Description: Disable admin color schemes.
    5  * Version:     1.0.1
     5 * Version:     1.
    66 * Author:      Brad Parbs
    77 * Author URI:  https://bradparbs.com/
    88 * License:     GPLv2
    9  * Text Domain: draft
     9 * Text Domain:
    1010 * Domain Path: /lang/
    1111 *
     
    1515namespace Colors;
    1616
    17 use WP_Query;
     17;
    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.
    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
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
Note: See TracChangeset for help on using the changeset viewer.