* Displays version conflict error messages at the top of the Dashboard * * @since 1.14 */ function mla_plugin_loader_reporting_action() { global $mla_plugin_loader_error_messages; echo '<div class="error"><p><strong>' . __('The Media Library Assistant cannot load.', 'media-library-assistant') . '</strong></p>' . "\r\n"; echo "<ul>{$mla_plugin_loader_error_messages}</ul>\r\n"; echo '<p>' . __('You must resolve these conflicts before this plugin can safely load.', 'media-library-assistant') . '</p></div>' . "\r\n"; } /* * Basic library of run-time tests. */ require_once MLA_PLUGIN_PATH . 'tests/class-mla-tests.php'; $mla_plugin_loader_error_messages .= MLATest::min_php_version('5.2'); $mla_plugin_loader_error_messages .= MLATest::min_WordPress_version('3.5.0'); if (!empty($mla_plugin_loader_error_messages)) { add_action('admin_notices', 'mla_plugin_loader_reporting_action'); } else { /* * MLATest is loaded above */ add_action('init', 'MLATest::initialize', 0x7fffffff); /* * Minimum support functions required by all other components */ require_once MLA_PLUGIN_PATH . 'includes/class-mla-core.php'; add_action('plugins_loaded', 'MLACore::mla_plugins_loaded_action', 0x7fffffff); add_action('init', 'MLACore::initialize', 0x7fffffff); /*