Making WordPress.org

Changeset 12316


Ignore:
Timestamp:
12/12/2022 03:14:07 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Restore the 'installation' tab content heading within the tab.

Resolves a PHP Notice.
See #3819.

File:
1 edited

Legend:

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

    r12309 r12316  
    349349                        'support',
    350350                        'reviews',
     351                        'installation',
    351352                        'developers',
    352353                );
    … …  
    362363
    363364                $sections  = array();
    364                 $title     = $url = '';
     365                $title     = '';
    365366                $permalink = get_permalink();
    366367
    … …  
    370371                                case 'description':
    371372                                        $title = _x( 'Description', 'plugin tab title', 'wporg-plugins' );
    372                                         $url   = $permalink;
    373373                                        break;
    374374
    375375                                case 'installation':
    376376                                        $title = _x( 'Installation', 'plugin tab title', 'wporg-plugins' );
    377                                         $url   = trailingslashit( $permalink ) . $section_slug . '/';
    378377                                        break;
    379378
    380379                                case 'faq':
    381380                                        $title = _x( 'FAQ', 'plugin tab title', 'wporg-plugins' );
    382                                         $url   = trailingslashit( $permalink ) . $section_slug . '/';
    383381                                        break;
    384382
    385383                                case 'screenshots':
    386384                                        $title = _x( 'Screenshots', 'plugin tab title', 'wporg-plugins' );
    387                                         $url   = trailingslashit( $permalink ) . $section_slug . '/';
    388385                                        break;
    389386
    390387                                case 'changelog':
    391388                                        $title = _x( 'Changelog', 'plugin tab title', 'wporg-plugins' );
    392                                         $url   = trailingslashit( $permalink ) . $section_slug . '/';
    393389                                        break;
    394390
    395391                                case 'stats':
    396392                                        $title = _x( 'Stats', 'plugin tab title', 'wporg-plugins' );
    397                                         $url   = trailingslashit( $permalink ) . $section_slug . '/';
    398393                                        break;
    399394
    400395                                case 'support':
    401396                                        $title = _x( 'Support', 'plugin tab title', 'wporg-plugins' );
    402                                         $url   = 'https://wordpress.org/support/plugin/' . $plugin->post_name . '/';
    403397                                        break;
    404398
    405399                                case 'reviews':
    406400                                        $title = _x( 'Reviews', 'plugin tab title', 'wporg-plugins' );
    407                                         $url   = 'https://wordpress.org/support/plugin/' . $plugin->post_name . '/reviews/';
    408401                                        break;
    409402
    410403                                case 'developers':
    411404                                        $title = _x( 'Contributors & Developers', 'plugin tab title', 'wporg-plugins' );
    412                                         $url   = trailingslashit( $permalink ) . '/' . $section_slug . '/';
    413405                                        break;
    414406
    415407                                case 'other_notes':
    416408                                        $title = _x( 'Other Notes', 'plugin tab title', 'wporg-plugins' );
    417                                         $url   = trailingslashit( $permalink ) . '/' . $section_slug . '/';
    418409                                        break;
    419410
    420411                                case 'blocks':
    421412                                        $title = _x( 'Blocks', 'plugin tab title', 'wporg-plugins' );
    422                                         $url   = trailingslashit( $permalink ) . '/' . $section_slug . '/';
    423413                                        break;
    424414
    … …  
    430420                        $sections[] = array(
    431421                                'slug'  => $section_slug,
    432                                 'url'   => $url,
    433422                                'title' => $title,
    434423                        );
Note: See TracChangeset for help on using the changeset viewer.