Opened 15 years ago
Closed 15 years ago
#20087 closed defect (bug) (invalid)
Bug in /wp-includes/nav-menu.php
| Reported by: | shopandstore | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
hello.
updated to 3.31
In my dashboard, while clicking to the Appearence> menus> there appears an error, that the function wp_trim_words is unknown;
the opened the nav-menu.php and saw these:
if ( empty( $menu_item->description ) ) $menu_item->description = apply_filters( 'nav_menu_description', wp_trim_words( $menu_item->post_content, 200 ) );
### it seemed to me something unknown, then i simply added the following
'{' $menu_item->description = apply_filte.........content, 200 ) ); '}'
}}}
and error was corrected.
Change History (8)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
sorry, the last paragraph was written unclearly. in short, when i added {} brackets after if() parameter, there wan no error anymore.