A SQL syntax error happened when a post has no comments and "Break comments into pages" is checked in Settings > Discussion. The fix sets the `'paged'` query arg only when there are comments. When there are no comments, `WP_Comment_Query` sets the default `'paged'` value to `1`. Props bernhard-reiter, luisherranz, czapla, cbravobernal, davidbaumwald, hellofromTonya. Follow-up to [53142], [53138]. Fixes #55658. Built from https://develop.svn.wordpress.org/trunk@53336 git-svn-id: http://core.svn.wordpress.org/trunk@52925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
44 KiB
44 KiB