<commit_before><?php

/** 
 * Adds the WordPress plugin update action if we are on the plugins page.
 *
 * @since v1.1.1
 */

global $pagenow;

/**
 * WordPress action for setting the upgrade notification message at the plugins page.
 * @param array $plugin_data    Array of plugin data.
 * @param array $r              Array of metadata about the plugin update.
 */
function in_plugin_update_message($plugin_data, $r) { 
    if (isset($r->upgrade_notice) && strlen(trim($r->upgrade_notice)) > 0) {
        ?>

        <p style="background-color: #d54e21; padding: 10px; color: #f9f9f9; margin-top: 10px">
            <strong>Upgrade Notice:</strong>
            <?php echo esc_html($r->upgrade_notice); ?>
        </p>

        <?php
    }
}

if ('plugins.php' === $pagenow) {
    $file = ACF_RECAPTCHA_BASENAME;
    $folder = basename(ACF_RECAPTCHA_ABSPATH);
    $hook = "in_plugin_update_message-{$folder}/{$file}";
    
    add_action($hook, 'in_plugin_update_message_acf_recaptcha', 20, 2);<commit_msg>Fix typo and use span for upgrade notice block (already nested in p tag)<commit_after><?php

/** 
 * Adds the WordPress plugin update action if we are on the plugins page.
 *
 * @since v1.1.1
 */

global $pagenow;

/**
 * WordPress action for setting the upgrade notification message at the plugins page.
 * @param array $plugin_data    Array of plugin data.
 * @param array $r              Array of metadata about the plugin update.
 */
function in_plugin_update_message_acf_recaptcha($plugin_data, $r) { 
    if (isset($r->upgrade_notice) && strlen(trim($r->upgrade_notice)) > 0) {
        ?>

        <span style="display: block; background-color: #d54e21; padding: 10px; color: #f9f9f9; margin: 10px 0">
            <strong>Upgrade Notice:</strong>
            <?php echo esc_html($r->upgrade_notice); ?>
        </span>

        <?php
    }
}

if ('plugins.php' === $pagenow) {
    $file = ACF_RECAPTCHA_BASENAME;
    $folder = basename(ACF_RECAPTCHA_ABSPATH);
    $hook = "in_plugin_update_message-{$folder}/{$file}";
    
    add_action($hook, 'in_plugin_update_message_acf_recaptcha', 20, 2);
{'fraction_non_alphanumeric': 0.13336497389653537, 'fraction_numerical': 0.017560512577123873, 'mean_word_length': 3.216, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2236067', 'n_tokens_mistral': 733, 'n_tokens_neox': 689, 'n_words': 181}