Code Duplication    Length = 10-19 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 572-590 (lines=19) @@
569
     *
570
     * @return void
571
     */
572
    public function load_scripts_styles_edit()
573
    {
574
        //styles
575
        wp_enqueue_style('espresso-ui-theme');
576
        wp_register_style(
577
            'event-editor-css',
578
            EVENTS_ASSETS_URL . 'event-editor.css',
579
            array('ee-admin-css'),
580
            EVENT_ESPRESSO_VERSION
581
        );
582
        wp_enqueue_style('event-editor-css');
583
        //scripts
584
        wp_register_script(
585
            'event-datetime-metabox',
586
            EVENTS_ASSETS_URL . 'event-datetime-metabox.js',
587
            array('event_editor_js', 'ee-datepicker'),
588
            EVENT_ESPRESSO_VERSION
589
        );
590
        wp_enqueue_script('event-datetime-metabox');
591
    }
592
593

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 568-577 (lines=10) @@
565
    }
566
567
568
    public function load_scripts_styles()
569
    {
570
        //style
571
        //wp_register_style('espresso_attendees', ATT_ASSETS_URL . 'espresso_attendees_admin.css', array(), EVENT_ESPRESSO_VERSION );
572
        wp_register_style('espresso_reg', REG_ASSETS_URL . 'espresso_registrations_admin.css', array('ee-admin-css'),
573
            EVENT_ESPRESSO_VERSION);
574
        wp_enqueue_style('espresso_reg');
575
        //script
576
        wp_register_script('espresso_reg', REG_ASSETS_URL . 'espresso_registrations_admin.js',
577
            array('jquery-ui-datepicker', 'jquery-ui-draggable', 'ee_admin_js'), EVENT_ESPRESSO_VERSION, true);
578
        wp_enqueue_script('espresso_reg');
579
    }
580