messages = array( 'headling' => esc_html__( 'Download Monitor - BETA testers - needed!', 'download-monitor' ), 'notice' => __( "
We've been working (hard!) on Download Monitor 4.6.0 which comes with a ton of improvements. We need hlep testing it out to make sure we don't break anything.
Just click on this link %1\$s, download and install Download Monitor 4.6.0 and test for issues. Please report any issue found back to us via: %2\$s.
", 'download-monitor' ), 'changelog_title' => esc_html__( 'New features in this version:', 'download-monitor' ), 'changelog' => array( 'custom tables for Reports (should be blazing fast now)', 'new way to handle downloads (we\'re using a browser-native way of handling downloads vs doing it via htaccess / nginx rules)', 'a LOT of smaller bug fixes under the hood', ), ); $this->link = '' . esc_html( 'here', 'download-monitor' ) . ''; $this->contact = '' . esc_html( 'contact us form', 'download-monitor' ) . ''; add_action( 'init', array( $this, 'init' ) ); } /** * Init * * @since 4.5.93 */ public function init() { if ( ! is_admin() ) { return; } add_action( 'wp_ajax_download-monitor_beta_test_notice_dismiss', array( $this, 'ajax' ) ); add_action( 'admin_notices', array( $this, 'beta_testers_needed_notice' ), 8 ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) ); add_action( 'admin_print_footer_scripts', array( $this, 'ajax_script' ) ); add_filter( 'dlm_uninstall_db_options', array( $this, 'uninstall_options' ) ); } /** * BETA testers notice * * @since 4.5.93 */ public function beta_testers_needed_notice() { if ( get_option( 'download-monitor-hide-beta-notice', false ) ) { return; } ?>messages['notice'] ), wp_kses_post( $this->link ), wp_kses_post( $this->contact ) ); ?>
messages['changelog'] ) ) { echo '