Closed tivnet closed 8 years ago
How is that different from this?
$requirement = new WP_Requirement();
$requirement->valid()
Not sure, why does anyone need a one line WP_Requirement::init()->valid()
instead of 2 lines. That just adds 1 more point of failure to the class with no benefit.
Something like:
if ( ! WP_Requirements::met( __FILE__ ) ) {
return;
}
A static method that receives the same parameters as the constructor, creates the object, does all processing and exits, returning
bool
of the validation.