You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* translators: 1: Current WordPress version, 2: Version the plugin was tested up to. */
1586
+
__( 'This plugin has not been tested with your current version of WordPress (%1$s). It may still work, but consider checking for an update or contacting the plugin author. Last tested with WordPress %2$s.' ),
1587
+
$wp_version,
1588
+
$tested_wp,
1589
+
);
1590
+
1591
+
/**
1592
+
* Filters whether to show compatibility warning for a plugin.
1593
+
*
1594
+
* @since 6.8.0
1595
+
*
1596
+
* @param bool $show_compat_warning Whether to show the compatibility warning.
1597
+
* @param string $plugin_file Path to the plugin file relative to the plugins directory.
1598
+
* @param array $plugin_data An array of plugin data. See get_plugin_data()
1599
+
* and the {@see 'plugin_row_meta'} filter for the list
1600
+
* of possible values.
1601
+
* @param string $tested_wp The WordPress version the plugin was tested up to.
1602
+
* @param string $wp_version Current WordPress version.
1603
+
*/
1604
+
$show_compat_warning = apply_filters(
1605
+
'show_plugin_compatibility_warning',
1606
+
$show_compat_warning,
1607
+
$plugin_file,
1608
+
$plugin_data,
1609
+
$tested_wp,
1610
+
$wp_version
1611
+
);
1612
+
1613
+
/**
1614
+
* Filters the compatibility warning message for a plugin.
1615
+
*
1616
+
* @since 6.8.0
1617
+
*
1618
+
* @param string $compat_message The compatibility warning message.
1619
+
* @param string $plugin_file Path to the plugin file relative to the plugins directory.
1620
+
* @param array $plugin_data An array of plugin data. See get_plugin_data()
1621
+
* and the {@see 'plugin_row_meta'} filter for the list
1622
+
* of possible values.
1623
+
* @param string $tested_wp The WordPress version the plugin was tested up to.
1624
+
* @param string $wp_version Current WordPress version.
1625
+
*/
1626
+
$compat_message = apply_filters(
1627
+
'plugin_compatibility_warning_message',
1628
+
$compat_message,
1629
+
$plugin_file,
1630
+
$plugin_data,
1631
+
$tested_wp,
1632
+
$wp_version
1633
+
);
1634
+
1635
+
if ( $show_compat_warning && ! empty( $compat_message ) ) {
0 commit comments