Home Forums Feedback Using global variable example code (Option Pages)


Using global variable example code (Option Pages)

  • Hi,

    I am not absolutely sure, but in your example code for custom option pages the variable $page is used. For me this throws a php notice (array to string conversion) in /wp-includes/general-template.php on line 870. Using WP 4.1.1.

    I think this is caused by naming the variable $page as this is a global variable. Changing it to something like $option_page will fix it.



  • Hi @luke

    Thanks a lot for the feedback.

    I am going to pass it to the developer so that he can have it fixed for anyone who will use the sample in the future.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Using global variable example code (Option Pages)’ is closed to new replies.