Making WordPress.org


Ignore:
Timestamp:
04/25/2019 05:42:17 PM (6 years ago)
Author:
coffee2code
Message:

Handbook plugin: Look for a post with the slug of 'handbook' as a final fallback for the post to act as the handbook landing page.

File:
1 edited

Legend:

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

    r8666 r8671  
    358358                $page = get_page_by_path( $slug, OBJECT, $this->post_type );
    359359            }
     360            if ( ! $page ) {
     361                $page = get_page_by_path( 'handbook', OBJECT, $this->post_type );
     362            }
    360363            if ( $page ) {
    361364                $query->set( 'p', $page->ID );
Note: See TracChangeset for help on using the changeset viewer.