Esempio n. 1
0
/**
 * Return an array of valid custom exclude rules
 *
 * @return array
 */
function hmbkp_valid_custom_excludes()
{
    $valid_rules = array();
    $excludes = hmbkp_get_excludes();
    $valid_rules = array_diff(explode(',', $excludes), hmbkp_invalid_custom_excludes());
    return array_filter(array_map('trim', $valid_rules));
}
Esempio n. 2
0
 function hmbkp_invalid_exclude_notice()
 {
     echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __('BackUpWordPress has detected a problem.', 'hmbkp') . '</strong> ' . sprintf(__('You have defined a custom exclude list but the following paths don\'t exist %s, are you sure you entered them correctly?', 'hmbkp'), '<code>' . implode('</code>, <code>', (array) hmbkp_invalid_custom_excludes()) . '</code>') . '</p></div>';
 }