Support » Plugin: Advanced Category Excluder » Warning & Patch to Fix

  • Hi,

    I found there are some single quotes missing for two text domain strings. I just fixed them to avoid warning notices when WordPress debug mode is on:

    // Before
    $ace_targets = array('is_archive'=>__('Archive','ace'),'is_home'=>__('Home','ace'),'is_feed'=>__('RSS Posts','ace'),'is_comment_feed'=>__('RSS Comments','ace'),'is_search'=>__('Search','ace'), 'is_page'=>__('Pages', ace), 'is_single'=>__('Single Posts', ace),'norobots'=>__('Disable robots','ace'));

    Fix:

    // After
    // Line 309
    // File: advanced-category-excluder.php
    $ace_targets = array('is_archive'=>__('Archive','ace'),'is_home'=>__('Home','ace'),'is_feed'=>__('RSS Posts','ace'),'is_comment_feed'=>__('RSS Comments','ace'),'is_search'=>__('Search','ace'), 'is_page'=>__('Pages', 'ace'), 'is_single'=>__('Single Posts', 'ace'),'norobots'=>__('Disable robots','ace'));

    Cheers.

    http://wordpress.org/plugins/advanced-category-excluder/

  • The topic ‘Warning & Patch to Fix’ is closed to new replies.