In the foreach loop of last results, move the if statement outside of the loop. There is no need to check every element in the array for the output type. Do this once outside of the loop. For large database queries with lots of rows returned, this should improve PHP performance. Props spacedmonkey, Cybr, johnbillion, costdev, joemcgill. Fixes #56541. Built from https://develop.svn.wordpress.org/trunk@56066 git-svn-id: http://core.svn.wordpress.org/trunk@55578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
118 KiB
118 KiB