Making WordPress.org

Changeset 10356


Ignore:
Timestamp:
10/07/2020 06:22:17 PM (4 years ago)
Author:
ryelle
Message:

Handbook: Adds 'post-type-archive-handbook' body class for any handbook archive page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php

    r10274 r10356  
    112112     *
    113113     * * Adds 'single-handbook' class for any handbook page.
     114     * * Adds 'post-type-archive-handbook' for any handbook archive page.
    114115     * * Adds 'handbook-landing-page' class for page acting as a handbook landing
    115116     *   page.
     
    121122        if ( is_singular() && wporg_is_handbook( $this->post_type ) ) {
    122123            $classes[] = 'single-handbook';
     124        }
     125
     126        if ( is_archive() && wporg_is_handbook( $this->post_type ) ) {
     127            $classes[] = 'post-type-archive-handbook';
    123128        }
    124129
Note: See TracChangeset for help on using the changeset viewer.