Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (19 sloc) 0.628 kb
<?php
/**
* @link actiontheme.com
* @link github.com/ryanve/action
*/
if (0 < version_compare('5.3.0', phpversion())) {
# Fail gracefully < 5.3. I tested this in 5.2.
# It lets the user return to the "Themes" page.
echo '<strong role="alert">';
trigger_error(implode("<br>\n", array(
__('PHP 5.3+ required.', 'theme')
, __('Please upgrade PHP via your web host.', 'theme')
, '<a href="' . admin_url('themes.php') . '">' . __('Or, switch themes.', 'theme') . "</a>"
)) . '<hr>', E_USER_WARNING);
echo '</strong>';
} else {
# Run the theme:
require_once 'hooks.php';
}
Jump to Line
Something went wrong with that request. Please try again.