{"id":84,"date":"2006-12-11T17:58:59","date_gmt":"2006-12-11T22:58:59","guid":{"rendered":"http:\/\/jacob.steenhagen.us\/blog\/?p=84"},"modified":"2012-02-22T13:24:46","modified_gmt":"2012-02-22T17:24:46","slug":"upcoming-events-and-wordpress-21","status":"publish","type":"post","link":"https:\/\/jacob.steenhagen.us\/blog\/2006\/12\/upcoming-events-and-wordpress-21\/","title":{"rendered":"Upcoming Events and WordPress 2.1"},"content":{"rendered":"<p>It looks like WordPress 2.1 is getting closer to being out the door&#8230; The <a href=\"http:\/\/wordpress.org\/development\/\">WordPress Development<\/a> blog just made a post to suggest the plugin authors check their code to make sure if it&#8217;s <a href=\"http:\/\/wordpress.org\/development\/2006\/12\/naughty-or-nice\/\">naughty or nice<\/a>. Well, <a href=\"http:\/\/jacob.steenhagen.us\/blog\/upcoming-events\">Upcoming Events<\/a> is somewhere in between. I followed the instructions on WordPress&#8217; site for <a href=\"http:\/\/codex.wordpress.org\/Creating_Tables_with_Plugins\">creating tables in the database<\/a> which said to use <tt>$table_prefix<\/tt> in order to get the configured prefix (<tt>wp_<\/tt> by default). It seems, however, that I should actually be using <tt>$wpdb->prefix<\/tt> instead. Fortunately, <tt>$table_prefix<\/tt> is just depreciated, not eliminated so even version 0.1 of Upcoming Events is WordPress 2.1 ready. Upcoming Events 0.4, when it comes out, will use the shiny new <tt>$wpdb->prefix<\/tt> interface.<\/p>\n<p><strong>UPDATE 11-Dec-2006<\/strong>: I edited the WordPress wiki to reflect the fact that <tt>$wpdb->prefix<\/tt> is now the prefered method.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It looks like WordPress 2.1 is getting closer to being out the door&#8230; The WordPress Development blog just made a post to suggest the plugin authors check their code to make sure if it&#8217;s naughty or nice. Well, Upcoming Events is somewhere in between. I followed the instructions on WordPress&#8217; site for creating tables in &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jacob.steenhagen.us\/blog\/2006\/12\/upcoming-events-and-wordpress-21\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Upcoming Events and WordPress 2.1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[14],"tags":[54,62,61],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7EJi-1m","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/posts\/84"}],"collection":[{"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":2,"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":149,"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/posts\/84\/revisions\/149"}],"wp:attachment":[{"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jacob.steenhagen.us\/blog\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}