Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25798, comment 2


Ignore:
Timestamp:
02/21/2014 05:38:40 PM (11 years ago)
Author:
mordauk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25798, comment 2

    initial v1  
    1 After a quick test, it looks like passing the post type to `get_page_by_path()` [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp.php#L209 here] fixes the issue:
    2 
    3 {{{
    4 if ( ! get_page_by_path( $matches[ $varmatch[1] ], OBJECT, 'bbg_test' ) )
    5 }}}
     1After a quick test, it looks like passing the post type to `get_page_by_path()` [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp.php#L209 here] fixes the issue.
    62
    73 I just hard coded the post type to test it quickly and it resolved the 404 error.
     4
     5`if ( ! get_page_by_path( $matches[ $varmatch[1] ], OBJECT, 'bbg_test' ) )`