Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/helpers
File: wordpress-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers;
[2] Fix | Delete
[3] Fix | Delete
// 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.
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* A helper object for WordPress matters.
[7] Fix | Delete
*/
[8] Fix | Delete
class Wordpress_Helper {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Returns the WordPress version.
[12] Fix | Delete
*
[13] Fix | Delete
* @return string The version.
[14] Fix | Delete
*/
[15] Fix | Delete
public function get_wordpress_version() {
[16] Fix | Delete
global $wp_version;
[17] Fix | Delete
[18] Fix | Delete
return $wp_version;
[19] Fix | Delete
}
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function