Skip to content

Commit

Permalink
use before_ and after_selection instead of section_class
Browse files Browse the repository at this point in the history
section does not seem to _have_ a class
  • Loading branch information
jazzsequence committed May 17, 2024
1 parent 97a943f commit 9bb777d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/pantheon-page-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public function action_init_do_maintenance_mode() {
public function action_admin_init() {
register_setting( self::SLUG, self::SLUG, [ self::$instance, 'sanitize_options' ] );
add_settings_section( 'general', false, '__return_false', self::SLUG, [
'section_class' => 'pantheon-page-cache-settings',
'before_section' => '<div class="pantheon-page-cache-settings">',
'after_section' => '</div>',
] );
add_settings_field( 'default_ttl', null, [ self::$instance, 'default_ttl_field' ], self::SLUG, 'general', [
'class' => 'cache-default-max-age',
Expand Down

0 comments on commit 9bb777d

Please sign in to comment.