Surface Gitea settings via projects_portfolio_settings() and test
This commit is contained in:
@@ -16,8 +16,10 @@ function projects_portfolio_settings() {
|
||||
|
||||
if ( $settings === null ) {
|
||||
$settings = [
|
||||
'github_api_token' => get_option( 'projects_portfolio_github_api_token', '' ),
|
||||
'share_telemetry' => get_option( 'projects_portfolio_share_telemetry', '0' ),
|
||||
'github_api_token' => get_option( 'projects_portfolio_github_api_token', '' ),
|
||||
'gitea_api_token' => get_option( 'projects_portfolio_gitea_api_token', '' ),
|
||||
'default_gitea_base_url' => get_option( 'projects_portfolio_default_gitea_base_url', 'https://codeberg.org' ),
|
||||
'share_telemetry' => get_option( 'projects_portfolio_share_telemetry', '0' ),
|
||||
'templates' => [
|
||||
'version' => get_option( 'projects_portfolio_templates_version', '0' ),
|
||||
'last_updated' => get_option( 'projects_portfolio_templates_last_updated', '0' ),
|
||||
|
||||
Reference in New Issue
Block a user