Making WordPress.org


Ignore:
Timestamp:
01/22/2018 10:05:04 PM (9 years ago)
Author:
coffee2code
Message:

Handbook plugin: Don't override o2 post fragment for navigation unless for a handbook page.

File:
1 edited

Legend:

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

    r6415 r6416  
    4747        public static function o2_post_fragment( $fragment, $post_id ) {
    4848                $prev = $next = false;
     49
     50                // Bail unless a handbook page.
     51                if ( ! wporg_is_handbook_post_type( get_post_type( $post_id ) ) ) {
     52                        return $fragment;
     53                }
    4954
    5055                if ( self::$using_pages_widget ) {
Note: See TracChangeset for help on using the changeset viewer.