• Resolved sharonchinn

    (@sharonchinn)


    I just updated my wordpress site that has wordpress helpers installed and I’m getting the following error

    Parse error: syntax error, unexpected ‘[‘ in …/wp-content/plugins/wp-helpers/parts/notices/new-features.php on line 9

    Can you tell me what needs to be changed? Here’s the code in that file that was updated today…

    ‘<?php
    /*
    Notice Type: updated
    Notice ID: wp_helpers_1_7_2
    Capability: manage_options
    */

    printf(__(‘<h3>What\’s new in WordPress Helpers %1$s</h3>’), get_option(‘piklist_active_plugin_versions’)[‘wp-helpers/wp-helpers.php’][0]);

    printf(__(‘%1$sDisable Emoji support%2$s →’), ‘‘, ‘‘);’

    https://wordpress.org/plugins/wp-helpers/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Steve Bruner

    (@sbruner)

    Please replace the entire file with this:

    <?php
    /*
    Notice Type: updated
    Notice ID: wp_helpers_1_7_2
    Capability: manage_options
    */
    
    $options = get_option('piklist_active_plugin_versions');
    
    printf(__('<h3>What\'s new in WordPress Helpers %1$s</h3>'), $options['wp-helpers/wp-helpers.php'][0]);
    
    printf(__('%1$sDisable Emoji support%2$s →'), '<a href="' . admin_url() . 'tools.php?page=piklist_wp_helpers&tab=writing">', '</a>');

    Let us know if that works.

    Thread Starter sharonchinn

    (@sharonchinn)

    Thanks… at least no error now.

    Plugin Author Steve Bruner

    (@sbruner)

    Do you see the admin notice?

    Thread Starter sharonchinn

    (@sharonchinn)

    Yes, after looking at my dashboard I see a message that says…

    What’s New in WordPress Helpers 1.7.2
    Disable Emoji support
    Dismiss

    Plugin Author Steve Bruner

    (@sbruner)

    Great. Thanks for helping us fix. Will push a new version with this update.

    Thread Starter sharonchinn

    (@sharonchinn)

    Thanks for the quick response. I appreciate it!

    Plugin Author Steve Bruner

    (@sbruner)

    Thank you for using WP Helpers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘error in new-features.php’ is closed to new replies.