Skip to content

Commit

Permalink
Update class-bootstrap.php
Browse files Browse the repository at this point in the history
Don't show Service Account JSON contents when set by a constant #320
  • Loading branch information
Md. Alimuzzaman Alim committed Dec 24, 2018
1 parent 2272085 commit ec8f730
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/classes/class-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,12 @@ public function admin_init() {
wp_localize_script('wp-stateless', 'wp_stateless_configs', array(
'WP_DEBUG' => defined('WP_DEBUG') ? WP_DEBUG : false,
));
wp_localize_script('wp-stateless', 'wp_stateless_settings', ud_get_stateless_media()->get('sm'));

$settings = ud_get_stateless_media()->get('sm');
if(defined('WP_STATELESS_MEDIA_JSON_KEY') && WP_STATELESS_MEDIA_JSON_KEY){
$settings['key_json'] = "Currently configured via constant.";
}
wp_localize_script('wp-stateless', 'wp_stateless_settings', $settings);
wp_localize_script('wp-stateless', 'wp_stateless_compatibility', Module::get_modules());
wp_register_style( 'jquery-ui-regenthumbs', ud_get_stateless_media()->path( 'static/scripts/jquery-ui/redmond/jquery-ui-1.7.2.custom.css', 'url' ), array(), '1.7.2' );

Expand Down

0 comments on commit ec8f730

Please sign in to comment.