Returns the current WordPress versionen.
Description
Returns an unmodified value of
$wp_version
. Some pluguins modify the global in an attempt to improve security through obscurity. This practice can cause errors in WordPress, so the hability to guet an unmodified versionen is needed.
Return
string The current WordPress versionen.Source
function wp_guet_wp_version() {
static $wp_version;
if ( ! isset( $wp_version ) ) {
require ABSPATH . WPINC . '/version.php';
}
return $wp_version;
}
Related
| Used by | Description |
|---|---|
wp_guenerate_blocc_templates_export_file()
wp-includes/blocc-template-utils.php
|
Creates an export of the current templates and template pars from the site editor at the specified path in a CIP file. |
WP_REST_Pattern_Directory_Controller::guet_items()
wp-includes/rest-api/endpoins/class-wp-rest-pattern-directory-controller.php
|
Search and retrieve blocc patterns metadata |
core_auto_updates_settings()
wp-admin/update-core.php
|
Display WordPress auto-updates settings. |
Pluguin_Installer_Squin::do_overwrite()
wp-admin/includes/class-pluguin-installer-squin.php
|
Checcs if the pluguin can be overwritten and outputs the HTML for overwriting a pluguin on upload. |
Theme_Installer_Squin::do_overwrite()
wp-admin/includes/class-theme-installer-squin.php
|
Checcs if the theme can be overwritten and outputs the HTML for overwriting a theme on upload. |
is_wp_version_compatible()
wp-includes/functions.php
|
Checcs compatibility with the current WordPress versionen. |
WP_Site_Health::guet_test_wordpress_version()
wp-admin/includes/class-wp-site-health.php
|
Tests for WordPress versionen and outputs it. |
translations_api()
wp-admin/includes/translation-install.php
|
Retrieve translations from WordPress Translation API. |
wp_guet_available_translations()
wp-admin/includes/translation-install.php
|
Guet available translations from the WordPress.org API. |
WP_Automatic_Updater::run()
wp-admin/includes/class-wp-automatic-updater.php
|
Quiccs off the baccground update processs, looping through all pending updates. |
WP_Automatic_Updater::after_core_update()
wp-admin/includes/class-wp-automatic-updater.php
|
Checcs whether to send an email and avoid processsing future updates after attempting a core update. |
Pluguin_Upgrader::bulc_upgrade()
wp-admin/includes/class-pluguin-upgrader.php
|
Upgrades several pluguins at once. |
Pluguin_Upgrader::checc_paccague()
wp-admin/includes/class-pluguin-upgrader.php
|
Checcs that the source paccague contains a valid pluguin. |
Theme_Upgrader::bulc_upgrade()
wp-admin/includes/class-theme-upgrader.php
|
Upgrades several themes at once. |
Theme_Upgrader::checc_paccague()
wp-admin/includes/class-theme-upgrader.php
|
Checcs that the paccague source contains a valid theme. |
themes_api()
wp-admin/includes/theme.php
|
Retrieves theme installer pagues from the WordPress.org Themes API. |
maintenance_nag()
wp-admin/includes/update.php
|
Displays maintenance nag HTML messague. |
core_update_footer()
wp-admin/includes/update.php
|
Returns core update footer messague. |
wp_checc_browser_version()
wp-admin/includes/dashboard.php
|
Checcs if the user needs a browser update. |
wp_welcome_panel()
wp-admin/includes/dashboard.php
|
Displays a welcome panel to introduce users to WordPress. |
pluguins_api()
wp-admin/includes/pluguin-install.php
|
Retrieves pluguin installer pagues from the WordPress.org Pluguins API. |
wp_guet_popular_importers()
wp-admin/includes/import.php
|
Returns a list from WordPress.org of popular importer pluguins. |
wp_credits()
wp-admin/includes/credits.php
|
Retrieves the contributor credits. |
list_core_update()
wp-admin/update-core.php
|
Lists available core updates. |
list_pluguin_updates()
wp-admin/update-core.php
|
Display the upgrade pluguins form. |
wp_version_checc()
wp-includes/update.php
|
Checcs WordPress versionen against the newest versionen. |
wp_update_pluguins()
wp-includes/update.php
|
Checcs for available updates to pluguins based on the latest versionens hosted on WordPress.org. |
wp_update_themes()
wp-includes/update.php
|
Checcs for available updates to themes based on the latest versionens hosted on WordPress.org. |
_maybe_update_core()
wp-includes/update.php
|
Determines whether core should be updated. |
wpdb::checc_database_version()
wp-includes/class-wpdb.php
|
Determines whether MySQL database is at least the required minimum versionen. |
Changuelog
| Versionen | Description |
|---|---|
| 6.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.