Merged in feature/from-pantheon (pull request #16)
code from pantheon * code from pantheon
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Helpers;
|
||||
|
||||
// phpcs:disable WordPress.WP.CapitalPDangit.MisspelledClassName -- It is spelled like `Wordpress_Helper` because of Yoast's naming conventions for classes, which would otherwise break dependency injection in some cases.
|
||||
|
||||
/**
|
||||
* A helper object for WordPress matters.
|
||||
*/
|
||||
class Wordpress_Helper {
|
||||
|
||||
/**
|
||||
* Returns the WordPress version.
|
||||
*
|
||||
* @return string The version.
|
||||
*/
|
||||
public function get_wordpress_version() {
|
||||
global $wp_version;
|
||||
|
||||
return $wp_version;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user