markjaquith / page-links-to

#WordPressPlugin: Lets you make a WordPress page (or other content type) link to an external URL of your choosing, instead of its WordPress URL.
GNU General Public License v2.0
110 stars 46 forks source link

Fix Warnings: Checks if `$items` is not empty and is an array #172

Open tporret opened 1 year ago

tporret commented 1 year ago

This version of the function first checks if $items is not empty and is an array. It fixes orphaned nav items left behind by naughty plugins.