Code Duplication    Length = 7-14 lines in 2 locations

core/libraries/messages/EE_messenger.lib.php 1 location

@@ 673-679 (lines=7) @@
670
	 *
671
	 * @return void
672
	 */
673
	public function add_preview_script() {
674
		//error message
675
		EE_Registry::$i18n_js_strings[ 'links_disabled' ] = __( 'All the links on this page have been disabled because this is a generated preview message for the purpose of ensuring layout, style, and content setup.  To test generated links, you must trigger an actual message notification.', 'event_espresso' );
676
		wp_register_script( 'ee-messages-preview-js', EE_LIBRARIES_URL . 'messages/messenger/assets/js/ee-messages-preview.js', array( 'jquery' ), EVENT_ESPRESSO_VERSION, true );
677
		wp_localize_script( 'ee-messages-preview-js', 'eei18n', EE_Registry::$i18n_js_strings );
678
		wp_enqueue_script( 'ee-messages-preview-js' );
679
	}
680
681
682

core/libraries/iframe_display/Iframe.php 1 location

@@ 474-487 (lines=14) @@
471
    /**
472
     * enqueue iframe button js
473
     */
474
    public static function embedButtonAssets()
475
    {
476
        \EE_Registry::$i18n_js_strings['iframe_embed_close_msg'] = __(
477
            'click anywhere outside of this window to close it.',
478
            'event_espresso'
479
        );
480
        wp_register_script(
481
            'iframe_embed_button',
482
            plugin_dir_url(__FILE__) . 'iframe-embed-button.js',
483
            array('ee-dialog'),
484
            EVENT_ESPRESSO_VERSION,
485
            true
486
        );
487
        wp_enqueue_script('iframe_embed_button');
488
    }
489
490