Making WordPress.org


Ignore:
Timestamp:
03/28/2022 09:06:06 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Admin: Show orientation taxonomy input as radio buttons instead of checkboxes since only one should ever be selected.

Done via only JS since it is easy enough to do so, affects only moderators who should all have JS enabled, and nothing bad results if this gets bypassed.

Props mdburnette, coffee2code.
Fixes #6206.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/admin.php

    r11710 r11712  
    124124
    125125    public static function admin_enqueue_scripts_and_styles() {
     126        wp_enqueue_script( 'wporg-photos', plugins_url( 'assets/js/admin.js', dirname( __FILE__ ) ), [], filemtime( WPORG_PHOTO_DIRECTORY_DIRECTORY . '/assets/js/admin.js' ), true );
    126127        wp_enqueue_style( 'wporg_photos_admin', plugins_url( 'assets/css/admin.css', WPORG_PHOTO_DIRECTORY_MAIN_FILE ), [], '20220126' );
    127128    }
Note: See TracChangeset for help on using the changeset viewer.