You appear to be a bot. Output may be restricted
Description
Load registered themesWe don't override the values that the user has defined with the hardcoded values Only apply the hardcoded values when the profile entry does not exist.
Usage
$array = _oik_themes_load_registered_themes();
Parameters
Returns
array of registered themes and their overridesSource
File name: oik/libs/oik_themes.phpLines:
1 to 15 of 15
function _oik_themes_load_registered_themes() { $bw_themes = get_option( "bw_themes" ); global $bw_registered_themes; if ( is_array( $bw_registered_themes) && count( $bw_registered_themes )) { foreach ( $bw_registered_themes as $theme => $theme_data ) { $theme = oik_update::bw_last_path( $theme_data['file'] ); bw_trace2( $theme ); if ( !isset( $bw_themes[$theme] ) ) { $bw_themes[$theme] = $theme_data; } $bw_themes[$theme]['programmatically_registered'] = true; } } return( $bw_themes ); }View on GitHub View on Trac