| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Helpers; |
| 4 |
|
| 5 |
// 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. |
| 6 |
|
| 7 |
/** |
| 8 |
* A helper object for WordPress matters. |
| 9 |
*/ |
| 10 |
class Wordpress_Helper { |
| 11 |
|
| 12 |
/** |
| 13 |
* Returns the WordPress version. |
| 14 |
* |
| 15 |
* @return string The version. |
| 16 |
*/ |
| 17 |
public function get_wordpress_version() { |
| 18 |
global $wp_version; |
| 19 |
|
| 20 |
return $wp_version; |
| 21 |
} |
| 22 |
} |
| 23 |
|