Skip to content

Commit

Permalink
do not migrate header bg colour if already deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwach committed Jul 20, 2016
1 parent 9794a47 commit b31cbed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commentpress-core/class_commentpress_db.php
Expand Up @@ -948,6 +948,9 @@ public function upgrade_immediately() {
*/
public function upgrade_theme_mods() {

// bail if option is already deprecated
if ( 'deprecated' == $this->option_get( 'cp_header_bg_colour' ) ) return;

// get header background colour set via customizer (new in 3.8.5)
$colour = get_theme_mod( 'commentpress_header_bg_color', false );

Expand Down

0 comments on commit b31cbed

Please sign in to comment.