{"id":349,"date":"2012-05-22T20:01:42","date_gmt":"2012-05-22T12:01:42","guid":{"rendered":"http:\/\/lesterchan.net\/wordpress\/?p=349"},"modified":"2012-08-23T23:47:54","modified_gmt":"2012-08-23T15:47:54","slug":"wp-polls-wp-postratings-wp-postviews-wp-email-updated","status":"publish","type":"post","link":"https:\/\/lesterchan.net\/wordpress\/2012\/05\/22\/wp-polls-wp-postratings-wp-postviews-wp-email-updated\/","title":{"rendered":"WP-Polls, WP-PostRatings, WP-PostViews, WP-Email Updated"},"content":{"rendered":"<p>I have updated the following plugins:<\/p>\n<ul>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-polls\/\">WP-Polls 2.63<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-postratings\/\">WP-PostRatings 1.63<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-postviews\/\">WP-PostViews 1.61<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-email\/\">WP-Email 2.60<\/a><\/li>\n<\/ul>\n<p>Now all AJAX requests are handled by \/wp-admin\/admin-ajax.php. Previously it is handled via the plugin PHP file itself by assuming that wp-load.php is always 2 levels down from the plugin file. But since you can have your WordPress in any folders, custom loading of wp-load.php is not possible as the path to wp-load.php varies from server to server.<\/p>\n<p>While I am at it, I added nonce check for AJAX calls to WP-Polls, WP-PostRatings and WP-Email. Let me know if you run into problems via <a href=\"http:\/\/wordpress.org\/support\/\">WordPress Support Forums<\/a>, <a href=\"http:\/\/forums.lesterchan.net\/\">My Forums<\/a> (if you are already registered) or via email (lesterchan AT gmail).<\/p>\n<p>PS: Kindly refer to <a href=\"https:\/\/lesterchan.net\/wordpress\/2012\/06\/05\/ajax-not-working-for-wp-email-wp-polls-wp-postratings-or-wp-postviews\/\">https:\/\/lesterchan.net\/wordpress\/2012\/06\/05\/ajax-not-working-for-wp-email-wp-polls-wp-postratings-or-wp-postviews\/<\/a> if you ran into problems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have updated the following plugins: WP-Polls 2.63 WP-PostRatings 1.63 WP-PostViews 1.61 WP-Email 2.60 Now all AJAX requests are handled by \/wp-admin\/admin-ajax.php. Previously it is handled via the plugin PHP file itself by assuming that wp-load.php is always 2 levels down from the plugin file. But since you can have your WordPress in any folders, &hellip; <a href=\"https:\/\/lesterchan.net\/wordpress\/2012\/05\/22\/wp-polls-wp-postratings-wp-postviews-wp-email-updated\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WP-Polls, WP-PostRatings, WP-PostViews, WP-Email Updated&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8,9,10],"tags":[137],"class_list":["post-349","post","type-post","status-publish","format-standard","hentry","category-wp-email","category-wp-polls","category-wp-postratings","category-wp-postviews","tag-updated"],"views":18136,"_links":{"self":[{"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":0,"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"wp:attachment":[{"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lesterchan.net\/wordpress\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}