public/wordpress/wp-content/plugins/backupbuddy/classes/core.php
/* alert_core_file_excludes()
	 *
	 * Outputs an alert warning if a core db table is excluded.
	 *
	 * @param	array 		$excludes		Array of paths excluded from the backup.
	 * @return	array 						Array of message warnings about potential issues found with these exclusions, if any. Index = unique identifer, Value = message.
	 *
	 */
alert_core_file_excludes()
Outputs an alert warning if a core db table is excluded.

@param       array           $excludes               Array of paths excluded from the backup.
@return      array                                           Array of message warnings about potential issues found with these exclusions, if any. Index = unique identifer, Value = message.
alert_core_file_excludes () Outputs an alert warning if a core db table is excluded . @param array $excludes Array of paths excluded from the backup . @return array Array of message warnings about potential issues found with these exclusions if any . Index = unique identifer Value = message .
public static function alert_core_file_excludes( $excludes ) {
		$warn_dirs = array( 
			'/wp-content',
			'/wp-content/uploads',
			'/wp-content/uploads/backupbuddy_temp',
			'/' . ltrim( str_replace( ABSPATH, '', backupbuddy_core::getBackupDirectory() ), '\\/' ),
		);
		foreach( $excludes as &$exclude ) { 
			$exclude = rtrim( $exclude, '\\/' );
		}
		$return_array = array();
		foreach( $warn_dirs as $warn_dir ) {
			if ( in_array( $warn_dir, $excludes ) ) {
				$return_array['excluding_corefile-' . md5( $warn_dir )] = 'Warning: You are excluding one or more WordPress core or BackupBuddy directories `' . $warn_dir . '` which may result in an incomplete or malfunctioning backup. Remove exclusions or backup with another profile or method to avoid problems.';
			}
		}
		return $return_array;
	}
public static function alert_core_file_excludes ( $ excludes ) { $ warn_dirs = array ( '/wp-content' , '/wp-content/uploads' , '/wp-content/uploads/backupbuddy_temp' , '/' . ltrim ( str_replace ( ABSPATH , '' , backupbuddy_core :: getBackupDirectory ( ) ) , '\\/' ) , ) ; foreach ( $ excludes as & $ exclude ) { $ exclude = rtrim ( $ exclude , '\\/' ) ; } $ return_array = array ( ) ; foreach ( $ warn_dirs as $ warn_dir ) { if ( in_array ( $ warn_dir , $ excludes ) ) { $ return_array [ 'excluding_corefile-' . md5 ( $ warn_dir ) ] = 'Warning: You are excluding one or more WordPress core or BackupBuddy directories `' . $ warn_dir . '` which may result in an incomplete or malfunctioning backup. Remove exclusions or backup with another profile or method to avoid problems.' ; } } return $ return_array ; }
alert_core_file_excludes()
 Outputs an alert warning if a core db table is excluded.
alert_core_file_excludes () Outputs an alert warning if a core db table is excluded .
// If these paths are found excluded then warn that may be a bad idea. // No trailing slash. // Strip trailing slash(es).