diff -uNr a/mp-wp/manifest b/mp-wp/manifest --- a/mp-wp/manifest c42bee644c7fb1e7245dbdeb7a401ce15b07bfb628349da487df3f208f256c0d2cc57c0a538d8bdd57c9efaa861341a98f376015b7725425685c0b8a93ad7270 +++ b/mp-wp/manifest 32a1554660dc266a80310dcfaefdb9ae997addc1d6dc33519a307e289b947e540ba81a59d4d0e751d96756d13e35db368fe9b948a04db2e1e16264a06a8fc2cc @@ -1,3 +1,4 @@ 526913 mp-wp_genesis hanbot The historical MP-WP: WordPress with better antispam, SVG-enated images, and very basic themes, with a view towards minimalizing Mullenweg & Co.'s crud. 558366 mp-wp_add-footnotes-and-textselectionjs billymg Add the footnotes and text selection features to mp-wp as seen on Trilema and other republican blogs 558370 mp-wp_update-image-references-to-svg billymg Update all internal image references to use .svg extensions +568792 mp-wp_html-comments-regrind hanbot Anonymous function in kses.php given variables to allow for html and other desired tags in comments compatible with PHP versions 5 and above. Also, trilema-specific database parameter for spam cleanup converted to (reground: correct) variable table name for compatibility. Spurious trilema-specific commented-out code deleted. diff -uNr a/mp-wp/wp-comments-post.php b/mp-wp/wp-comments-post.php --- a/mp-wp/wp-comments-post.php e9aaf0aaf32dffb5b8bb8379a618fafe0f36e23a48736031530a03a8a4c0a9ee3825e8d825703f313b164453c1f145941c79e3cbb7b55729cfa827ffee6fbe41 +++ b/mp-wp/wp-comments-post.php e1266be5f283a603704e6a1541a122fc956d320bfc7d6144dcbb3aa75df924396807ae84d64b30fda19bae83aca09b6bb45740f6a4d7d7a8a94d4e8fa8df4b7e @@ -45,14 +45,6 @@ $comment_time = $comment_check[0]; $comment_IP = $comment_check[1]; -// Special handle for idiots. -/* -if (($comment_author_email == "icriss78@yahoo.com")||($comment_author_url == "http://blog.matinal.org")) { - $comment_author_url = ""; - $comment_content.= "\n\nEu sunt o simpla fictiune. Luati ce-am scris mai sus ca atare."; -} -*/ - // GPG catchall. if (strpos($comment_content,"BEGIN PGP")>0) $comment_content = "".$comment_content.""; @@ -61,7 +53,7 @@ if (((time() - $comment_time) < 3)||(time() - $comment_time > 5000)||($comment_IP <> $_SERVER['REMOTE_ADDR'])) wp_die( __('Looks like you tried to comment off a stale page. Reload the article, count to three and try again.') ); -$myrows = $wpdb->get_var('SELECT comment_ID FROM tril_comments WHERE comment_author_IP = "'.$_SERVER["REMOTE_ADDR"].'" and comment_approved = "spam";'); +$myrows = $wpdb->get_var('SELECT comment_ID FROM '.$wpdb->comments.' WHERE comment_author_IP = "'.$_SERVER["REMOTE_ADDR"].'" and comment_approved = "spam";'); if ($myrows > 0) wp_die( __('Spammers need not apply.') ); // If the user is logged in diff -uNr a/mp-wp/wp-includes/kses.php b/mp-wp/wp-includes/kses.php --- a/mp-wp/wp-includes/kses.php ad0707f4063782a4ad2492d7b6e85af27fbd9ac946b7f18071f0b88a490a0a33fe2e67bcfd774d39b7a79b93b044a4d005ae063be1558ba2f3da3a97c96c1218 +++ b/mp-wp/wp-includes/kses.php b8e96543ee87627a53b15078674eff735cb65aa13854dd2a7035eb5ae8f9acdaaeaebd654b0e83400cf130c644cda96954d42cfa8ad2218f1336660ce8ef46a2 @@ -395,7 +395,7 @@ */ function wp_kses_split($string, $allowed_html, $allowed_protocols) { return preg_replace_callback('%((|$))|(<[^>]*(>|$)|>))%', - function($match) { + function($match) use ($allowed_html, $allowed_protocols) { return wp_kses_split2($match[1], $allowed_html, $allowed_protocols); }, $string); }