WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22867


Ignore:
Timestamp:
12/11/12 23:30:21 (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22867

    • Property Component changed from General to Menus
  • Ticket #22867 – Description

    initial v1  
    44 
    55Sample PHP Code: 
    6  
     6{{{ 
    77<?php 
    88 
     
    1616 
    1717?> 
    18  
     18}}} 
    1919 
    2020 
    2121The following error occurs: 
     22{{{ 
    2223Fatal error: Call to a member function get_page_permastruct() on a non-object in C:\xampp\htdocs\lchs4\wp-includes\link-template.php on line 271 
     24}}} 
    2325 
    2426This occurs in the following area of code: 
     27{{{ 
    2528function _get_page_link( $post = false, $leavename = false, $sample = false ) { 
    2629        global $wp_rewrite; 
     
    3134 
    3235        $link = $wp_rewrite->get_page_permastruct(); <--- happens here 
    33  
     36}}} 
    3437Essentially, the variable $wp_rewrite shows as <Uninitialized> when viewed in xdebug using Eclipse.