Making WordPress.org


Ignore:
Timestamp:
05/05/2020 02:43:57 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: FAQ: Alter the markup to be <dt><h3>{{Question}}</h3></dt> to match the Javascript FAQ implementation.

This is run on import, so it'll only affect plugins upon their next commit rather than immediately.

Fixes #5191.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php

    r8626 r9826  
    399399                foreach ( $this->faq as $question => $answer ) {
    400400                    $question_slug          = sanitize_title_with_dashes( $question );
    401                     $this->sections['faq'] .= "<dt id='{$question_slug}'>{$question}</dt>\n<dd>{$answer}</dd>\n";
     401                    $this->sections['faq'] .= "<dt id='{$question_slug}'><h3>{$question}</h3></dt>\n<dd>{$answer}</dd>\n";
    402402                }
    403403                $this->sections['faq'] .= "\n</dl>\n";
Note: See TracChangeset for help on using the changeset viewer.