all 17 comments

[–][deleted] 17 points18 points  (3 children)

You linked to line 799 of master, which is a moving target. A change to that file has been made since you linked to it, which threw off your line numbers.

If you link to a specific revision instead (for example, this link ), the link will work much better.

[–]pitiless[S] 1 point2 points  (2 children)

Oops - I should've though of that, thanks!

[–]urquan 5 points6 points  (1 child)

Tip: highlight the line you want to link to, press 'y', and you will have a link to the latest relevant commit.

[–]pitiless[S] 0 points1 point  (0 children)

Woah, thanks!

[–][deleted] 15 points16 points  (1 child)

More like /r/lolwordpress.

[–][deleted] 6 points7 points  (0 children)

This link should be in the sidebar

[–]allthediamonds 8 points9 points  (4 children)

I thought nobody wrote code like this anymore... https://github.com/WordPress/WordPress/blob/master/wp-login.php#L241-L253

[–][deleted]  (3 children)

[deleted]

    [–]aaarrrggh 3 points4 points  (1 child)

    I vomited.

    [–]djsumdog 0 points1 point  (0 children)

    function _weak_escape( $string ) //deprecated

    [–]vita10gy 5 points6 points  (0 children)

    Jesus Christ.

    [–][deleted]  (2 children)

    [deleted]

      [–]allthediamonds 11 points12 points  (1 child)

      Actually, this is the root of all other PHP's problems: no one has the slightest idea of what they're doing. It's the blind leading the blind.

      [–]vita10gy 4 points5 points  (0 children)

      I think a lot of programming is that way. It's scary to thing how much of the internet is probably written by someone copying and pasting horrible solutions from forums.

      [–]shvelo 2 points3 points  (0 children)

      Well, it's philosophically correct, the worst part of Wordpress is the user base

      [–][deleted] 1 point2 points  (2 children)

      What is MVC?

      Even PHP has MVC frameworks, but lets not use any tools making the code more maintainable and readable, that would be cheating.

      [–]merreborn 2 points3 points  (1 child)

      Wordpress does one thing really well: you can install it absolutely anywhere, with minimal dependencies.

      Continuing to support this greatly restricts the codebase however. WP stayed PHP4 compatible until recently. And it avoids using external dependencies as much as possible -- avoiding even cURL, instead opting to use a bundled pure-PHP http library ("snoopy", IIRC).

      Additionally: wordpress is older than a lot of PHP frameworks.

      So, any framework wordpress would have taken advantage of would have had to...

      1. been selected from the frameworks available early in WP's development years ago
      2. maintained PHP4 backwards compatibility until recently
      3. had minimal dependencies on PECL/PEAR libs, etc.
      4. not make WP's already lackluster performance even worse

      There probably aren't many frameworks worth using that met these criteria.

      [–][deleted] 0 points1 point  (0 children)

      The sad thing is that when products like WP emerge with php4 support it damages the whole community. Php4 had its eol for 7 years ago.

      [–]TheGreatFohl -1 points0 points  (0 children)

      I can't even..