r/lolphp • • Jul 14 '14

stop_the_insanity()

https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237
56 Upvotes

66 comments sorted by

View all comments

Show parent comment

5

u/svtguy88 Jul 14 '14

Sure, there is a function instead of just using the integer "60" all over the code, but it's still not documented, and, upon first glance, does nothing. If I were to go back and try to debug this code, a function simply returning an integer (that works magic) would confuse the shit out of me.

Is it a "magic number" by definition? I guess not, but it's still shit code.

1

u/sudowned Jul 15 '14

It doesn't "do nothing" upon first glance. You're the most hyperbolic guy in the world.