Make WordPress Core


Ignore:
Timestamp:
12/14/2018 07:08:06 PM (6 years ago)
Author:
allancole
Message:

Updating Twenty Nineteen, the new default theme for 2019.

This change adds general code quality and documentation improvements.

Props grapplerulrich, iCaleb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/inc/template-functions.php

    r43909 r44187  
    107107 */
    108108function twentynineteen_image_filters_enabled() {
    109     if ( get_theme_mod( 'image_filter', 1 ) ) {
    110         return true;
    111     }
    112     return false;
     109    return 'inactive' !== get_theme_mod( 'image_filter', 1 );
    113110}
    114111
     
    419416        return "#$r$g$b";
    420417
    421     } else {
    422 
    423         return "rgb($r, $g, $b)";
    424     }
    425 }
     418    }
     419
     420    return "rgb($r, $g, $b)";
     421}
Note: See TracChangeset for help on using the changeset viewer.