Nice plugin, but needs some compatibility adjustments for newer WP.
I’m getting the debug.log [WP_DEBUG=1]
filled with these every time a theme color is changed:
options.php was called with an argument that is deprecated since version 2.7.0! The _colorthemeadmin setting is unregistered. Unregistered settings are deprecated.
options.php was called with an argument that is deprecated since version 2.7.0! The _colorthemeadmintop setting is unregistered. Unregistered settings are deprecated.
options.php was called with an argument that is deprecated since version 2.7.0! The _colorthemeadminwptop setting is unregistered. Unregistered settings are deprecated.
options.php was called with an argument that is deprecated since version 2.7.0! The _colorthemeadminmain setting is unregistered. Unregistered settings are deprecated.
How to get rid of those warnings is explained here:
https://codex.www.ads-software.com/Creating_Options_Pages
Options have to be registered first. I put that reg here:
\plugins\colorize-admin\inc\settings.php
~line 4
if( is_admin() ) add_action( 'admin_init', 'register_colorthemeadmin_settings' );
function register_colorthemeadmin_settings() { // whitelist options
register_setting( 'colorthemeadmin', '_colorthemeadmin' );
register_setting( 'colorthemeadmin', '_colorthemeadmintop' );
register_setting( 'colorthemeadmin', '_colorthemeadminwptop' );
register_setting( 'colorthemeadmin', '_colorthemeadminmain' );
}
Then the form needs to be submitted differently:
\plugins\colorize-admin\inc\admin-options.php
after the opening form tag in line 35:
<form method="post" action="options.php" id="htmlForm">
<?php settings_fields( 'colorthemeadmin' ); ?>
<?php do_settings_sections( 'colorthemeadmin' ); ?>
<?php //wp_nonce_field('update-options'); ?>
HTH.
Thanks.
]]>White letters on a gold background hurts my eyes, and are rather hard to read. Matter of fact, white letters against any light background are hard to read. Other than that your plugin works fine.
]]>OK, I have the problem with debug bar plugin. It is not your plugin directly :
When I want to save a color theme WP_default for exemple, I have :
Notice: Undefined offset: 5 in D:\wamp\www\wordpressBasic\wp-content\plugins\debug-bar\panels\class-debug-bar-deprecated.php on line 112
And when I deactivated debug bar :
Notice: options.php est appelé avec un argument qui est <strong>déprécié</strong> depuis la version 2.7.0 ! L’option <code>_colorthemeadmin</code> n’est pas enregistrée. Les options non enregistrées sont obsolètes. Consultez la documentation sur la page https://codex.www.ads-software.com/Settings_API in D:\wamp\www\wordpressBasic\wp-includes\functions.php on line 3890
Many error when I activate a color. I immediately delete the plugin for navigate less error.
(php7)
Hi, could the entire WP admin interface be given a black background with pale text? I’m working on a site where the WP interface needs to visually match the client’s old ASP.net admin system.
Thanks
]]>