add_submenu_page function causing strip_slashes warning
-
Hi all,
First time poster. I tried searching everywhere for a solution to this problem before posting. My problem is adding a submenu page. when I use the example, provided here, verbatim I get the following warning:
“Warning: strip_tags() expects parameter 1 to be string, array given in /(snip)/wp-admin/admin-header.php on line 22”It also applies when I use the parent_slug (‘edit.php?post_type=your_post_type’) for a custom post type.
The issue seems to be related to the $page_title paramater. It does not show within the <title></title> tag and the aforementioned error above.
I have not found anyone with and mention of this error. I understand it’s only a warning but it is really bugging me. Any help would be appreciated.
I am using WordPress 3.4.1 with no changes to any core files.
- The topic ‘add_submenu_page function causing strip_slashes warning’ is closed to new replies.