Making WordPress.org

Changeset 10006


Ignore:
Timestamp:
07/03/2020 06:30:58 AM (5 years ago)
Author:
tellyworth
Message:

Plugin directory: link validator messages to sample help page.

The docs probably belong somewhere else, but this will serve as an example.

See #5303

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php

    r10005 r10006  
    8686                $docs_link = '';
    8787                if ( 'check' === substr( $item->check_name, 0, 5 ) ) {
    88                     $docs_link = "<a href='/hypothetical/doc/page#{$item->check_name}'>" . __( 'More about this.', 'wporg-plugins' ) . '</a>';
     88                    $docs_link = "<a href='help#{$item->check_name}'>" . __( 'More about this.', 'wporg-plugins' ) . '</a>';
    8989                }
    9090                $output .= "<li class='{$item->check_name}'>{$item->message} {$docs_link}</li>\n";
Note: See TracChangeset for help on using the changeset viewer.