如何修复此WordPress功能,使其不返回404页面? [英]How to fix this WordPress function so that it doesn't return a 404 page?