Commit 85df628
authored
Use post_name instead of basename (Bugfix for static home page)
Fixes Bug when setting a static front-page.
Context on localhost: When setting a static frontpage `basename( get_sl($item->object_id) )` returns "localhost". Using `et_post_field( 'post_name', $item->object_id )` returns the actual slug of the page.1 parent f835c0c commit 85df628
File tree
1 file changed
+1
-1
lines changed1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments