- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
426 B
JavaScript
Executable File
14 lines
426 B
JavaScript
Executable File
/**
|
|
* Mimic WordPress Core's front-page dropdown toggle control.
|
|
*/
|
|
jQuery( document ).ready( function( $ ) {
|
|
var section = $( '.form-table' ),
|
|
capType = section.find( 'input:radio[value="capability"]' ),
|
|
selects = section.find( 'select' ),
|
|
check_disabled = function() {
|
|
selects.prop( 'disabled', ! capType.prop( 'checked' ) );
|
|
};
|
|
check_disabled();
|
|
section.find( 'input:radio' ).change( check_disabled );
|
|
} );
|