PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.3.2
Adminify – White Label, Admin Menu Editor, Login Customizer v4.3.2
4.3.2 4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 All 165 releases
← All changes | Inc/utils.php +21 -0 4.3.04.3.2 View file →
@@ -1262,8 +1262,29 @@
1262 1262 global $wp_version;
1263 1263 return version_compare( $wp_version, $version, $operator );
1264 1264 }
1265 1265
1266 + /**
1267 + * Shared guard for features that only work below WordPress 7.1.
1268 + *
1269 + * 7.1 rewrote the block editor chrome and absorbed features Adminify used to
1270 + * provide, so several settings became either inert or actively harmful there.
1271 + * Rather than repeat the version literal at each of them, they all gate on this
1272 + * one call, so the boundary moves in a single place.
1273 + *
1274 + * Features behind this guard:
1275 + * - `gutenberg_editor_logo`: painted over `.edit-post-fullscreen-mode-close`,
1276 + * a class the rebuilt icon-only close button no longer carries.
1277 + * - `media_attachments.media_ininite_scroll`: the Media Library grid scrolls
1278 + * infinitely by default from 7.1, with a per-user opt-out. Forcing the
1279 + * `media_library_infinite_scrolling` filter overrides that preference.
1280 + *
1281 + * @return bool True on WordPress older than 7.1.
1282 + */
1283 + public static function is_wp_below_7_1() {
1284 + return self::check_wp_version( '<', '7.1' );
1285 + }
1286 +
1266 1287 public static function help_urls($module_name = '', $docs = '', $youtube = '', $facebook_grp = '', $support = '')
1267 1288 {
1268 1289 $help_content = '';
1269 1290