<?php
if(!defined('WPINC'))
	exit('Do NOT access this file directly: '.basename(__FILE__));

if(!class_exists('deps_xd_v141226_dev'))
{
	final class deps_xd_v141226_dev
	{
		public function check($plugin_name = '')
		{
			if(!is_admin() || !current_user_can('install_plugins'))
				return FALSE; // Nothing to do here.

			$notice = '<div class="error fade">';
			$notice .= '<p>';

			$notice .= ($plugin_name) ?
				'Regarding <strong>'.esc_html($plugin_name).':</strong>'.
				'&nbsp;&nbsp;&nbsp;' : '';

			$notice .= '%%notice%%';

			$notice .= '</p>';
			$notice .= '</div>';

			add_action('all_admin_notices', // Notify in all admin notices.
			           create_function('', 'echo \''.str_replace("'", "\\'", $notice).'\';'));

			return FALSE; // Always return a FALSE value in this scenario.
		}
	}
}