Changeset 2586108
- Timestamp:
- 08/20/2021 05:06:35 PM (5 years ago)
- Location:
- colors
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from colors/trunk)
-
tags/1.1.0/colors.php (modified) (2 diffs)
-
tags/1.1.0/readme.txt (modified) (1 diff)
-
trunk/colors.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
colors/tags/1.1.0/colors.php
r2585452 r2586108 3 3 * Plugin Name: Colors 4 4 * Description: Disable admin color schemes. 5 * Version: 1. 0.15 * Version: 1.1.0 6 6 * Author: Brad Parbs 7 7 * Author URI: https://bradparbs.com/ 8 8 * License: GPLv2 9 * Text Domain: draft9 * Text Domain: colors 10 10 * Domain Path: /lang/ 11 11 * … … 15 15 namespace Colors; 16 16 17 use WP_Query;17 add_action( 'plugins_loaded', __NAMESPACE__ . '\\disable_colors' ); 18 18 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 */ 22 function disable_colors() { 23 24 if ( apply_filters( 'colors_should_disable_admin_colors', true ) ) { 23 25 remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 24 26 } 25 ); 27 } -
colors/tags/1.1.0/readme.txt
r2585452 r2586108 4 4 Requires at least: 5.2 5 5 Tested up to: 5.8 6 Stable tag: 1. 0.16 Stable tag: 1.1.0 7 7 License: GPLv2 or later 8 8 Requires PHP: 5.6 9 9 10 A WordPress plugin to disable admin color schemes 10 A WordPress plugin to disable admin color schemes. 11 11 12 12 == Description == 13 13 14 14 Disable 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 3 3 * Plugin Name: Colors 4 4 * Description: Disable admin color schemes. 5 * Version: 1. 0.15 * Version: 1.1.0 6 6 * Author: Brad Parbs 7 7 * Author URI: https://bradparbs.com/ 8 8 * License: GPLv2 9 * Text Domain: draft9 * Text Domain: colors 10 10 * Domain Path: /lang/ 11 11 * … … 15 15 namespace Colors; 16 16 17 use WP_Query;17 add_action( 'plugins_loaded', __NAMESPACE__ . '\\disable_colors' ); 18 18 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 */ 22 function disable_colors() { 23 24 if ( apply_filters( 'colors_should_disable_admin_colors', true ) ) { 23 25 remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 24 26 } 25 ); 27 } -
colors/trunk/readme.txt
r2585452 r2586108 4 4 Requires at least: 5.2 5 5 Tested up to: 5.8 6 Stable tag: 1. 0.16 Stable tag: 1.1.0 7 7 License: GPLv2 or later 8 8 Requires PHP: 5.6 9 9 10 A WordPress plugin to disable admin color schemes 10 A WordPress plugin to disable admin color schemes. 11 11 12 12 == Description == 13 13 14 14 Disable 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.