WordPress.org

Make WordPress Core

Ticket #53576: 53576.diff

File 53576.diff, 883 bytes (added by desrosj, 3 months ago)
  • src/wp-includes/class-wp-theme-json.php

     
    12061206                        $theme_settings['settings']['typography']['fontSizes'] = $font_sizes;
    12071207                }
    12081208
    1209                 /*
    1210                  * This allows to make the plugin work with WordPress 5.8 beta
    1211                  * as well as lower versions. The second check can be removed
    1212                  * as soon as the minimum WordPress version for the plugin
    1213                  * is bumped to 5.8.
    1214                  */
    1215                 if ( isset( $settings['enableCustomSpacing'] ) ) {
    1216                         if ( ! isset( $theme_settings['settings']['spacing'] ) ) {
    1217                                 $theme_settings['settings']['spacing'] = array();
    1218                         }
    1219                         $theme_settings['settings']['spacing']['customPadding'] = $settings['enableCustomSpacing'];
    1220                 }
    1221 
    12221209                return $theme_settings;
    12231210        }
    12241211