public/wordpress/wp-content/plugins/wp-courseware/includes/functions/backcompat.php
/**
 * Get all of the settings as an array.
 *
 * @since 1.0.0
 *
 * @param string $settingPrefix The string key used to store the array of settings.
 *
 * @return string The list of settings as an associative array.
 */
Get all of the settings as an array.

@param string $settingPrefix The string key used to store the array of settings.

@return string The list of settings as an associative array.
Get all of the settings as an array . @param string $settingPrefix The string key used to store the array of settings . @return string The list of settings as an associative array .
function WPCW_TidySettings_getSettings( $settingPrefix ) {
	$rawSettings = get_option( $settingPrefix );
	if ( $rawSettings ) {
		if ( is_array( $rawSettings ) ) {
			return $rawSettings;
		}
		return unserialize( $rawSettings );
	}
	return false;
}
function WPCW_TidySettings_getSettings ( $ settingPrefix ) { $ rawSettings = get_option ( $ settingPrefix ) ; if ( $ rawSettings ) { if ( is_array ( $ rawSettings ) ) { return $ rawSettings ; } return unserialize ( $ rawSettings ) ; } return false ; }
Get all of the settings as an array.
Get all of the settings as an array .
// Sometimes data is not serialised yet