{"id":486,"date":"2011-09-20T00:28:56","date_gmt":"2011-09-20T00:28:56","guid":{"rendered":"http:\/\/wp4design.com\/?p=486"},"modified":"2012-02-26T15:44:35","modified_gmt":"2012-02-26T14:44:35","slug":"wordpress-basics-0-2-7-ch-ch-ch-ch-changes","status":"publish","type":"post","link":"https:\/\/4design.xyz\/wordpress-basics\/wordpress-basics-0-2-7-ch-ch-ch-ch-changes","title":{"rendered":"WordPress Basics 0.2.7.1 &#8212; Ch-ch-ch-ch-Changes!"},"content":{"rendered":"<p>In this new version 0.2.7.1 of WordPress Basics, I&#8217;ve focused on optimizations and consistencies, starting with the <em>functions.php<\/em> file, that\u00a0I\u00a0decomposed in many specialized files, like <em>functions-setup.php<\/em>, <em>functions-display.php<\/em>, <em>functions-filter-action.php<\/em> and <em>functions-comment.php<\/em>, for now. I&#8217;ve change the way the logo is marked up in the <em>header.php<\/em> in a HTML5 way,\u00a0putting into practice\u00a0the advices of\u00a0the article <a href=\"http:\/\/wp4design.com\/html5-boilerplate-using-ir-class\">Using .ir class and make the replaced image \u201cclickable\u201d<\/a>.\u00a0<!--more--><\/p>\n<p>I have worked to <strong>make Basics more flexible<\/strong> by turning some hard coding into functions to make customizations more easier, especially concerning Javascript libraries and other scripts authors may want to add to fit their personnal needs. By the way, I have moved a lot of files to a brand <strong>new Child theme named Beyond Basics<\/strong>. The Parent theme <strong>Basics gains\u00a0in simplicity!<\/strong><\/p>\n<p>PS: Don&#8217;t be afraid: minus the mark up for the logo and some removals like <em>.ir<\/em> or <em>.visuallyhidden<\/em> classes, the skeleton is still the same for now.<\/p>\n<h1>Basics changelogs<\/h1>\n<p><em>Last modified on 20\/09\/2011 &#8211; 00:37 by Bruno Bichet<\/em><\/p>\n<p>For Those About to Rock&#8230; Fire!<\/p>\n<h2>Release 0.2.7.1 &#8211; 20\/09\/2011 &#8211; 00:37<\/h2>\n<ol>\n<li>Change version number for stylesheet call :\u00a0<em>?v=0.2.7.1&#8243;<\/em>\u00a0[header.php]<\/li>\n<li>Edit paths to URL of favicons in\u00a0<em>basics_favicon()<\/em>\u00a0to make it work\u00a0<strong>[inc\/functions-display.php]<\/strong><\/li>\n<li>Rename basics<em>favicon() to basics<\/em>favicons()\u00a0<strong>[inc\/functions-display.php]<\/strong>,\u00a0<strong>[header.php]<\/strong><\/li>\n<li>Move\u00a0<strong>[404.php]<\/strong>\u00a0to Child Theme\u00a0<em>Beyond Basics<\/em><\/li>\n<li>Change case to some .txt files : CHANGELOG.txt HUMANS.txt, README.txt, LICENSE.txt<\/li>\n<li>Make some cosmetic changes to HUMANS.txt<\/li>\n<li>Add\u00a0<em>basics_search_autofocus()<\/em>\u00a0to print\u00a0<em>autofocus<\/em>\u00a0attribute to Search form when the user is in search context<\/li>\n<li>Edit README.txt to reflect the changes brought by the Child Theme Beyond Basics<\/li>\n<\/ol>\n<h2>Release 0.2.7 &#8211; 19\/09\/2011<\/h2>\n<ol>\n<li>Minor changes in comments [style.css]\u00a0<strong>[markup.css]<\/strong><\/li>\n<li>Change hook (<em>widgets_init<\/em>\u00a0instead of\u00a0<em>init<\/em>) for registering\u00a0<em>basics_widgets_init()<\/em>\u00a0function\u00a0<strong>[functions.php]<\/strong><\/li>\n<li>Wrap some basics functions into\u00a0<em>basics_setup()<\/em>\u00a0triggered by\u00a0<em>after_setup_theme hook<\/em>\u00a0<strong>[functions.php]<\/strong><\/li>\n<li>Remove one level of indentation after each\u00a0<em>if ( ! function_exists():<\/em>\u00a0<strong>[functions.php]<\/strong><\/li>\n<li>Split [functions.php] file in several files sets in\u00a0<em>\/inc\/<\/em>\u00a0folder for easy maintenance and evolution<\/li>\n<li>Add condition\u00a0<em>is_404()<\/em>\u00a0to\u00a0<em>basics_description()<\/em>\u00a0to avoid &#8220;Notice&#8221; when\u00a0<em>$post<\/em>\u00a0doesn&#8217;t exist (404 = no post)<strong>[inc\/functions-display.php]<\/strong><\/li>\n<li>Change function\u00a0<em>the_widget( &#8216;WP_Widget_Archives&#8217;, &#8216;dropdown=1&amp;count=0&#8217;<\/em>\u00a0to avoid Notice if\u00a0<em>&amp;count=0<\/em>\u00a0is missing\u00a0<strong>[content-404.php]<\/strong><\/li>\n<li>Add condition on function\u00a0<em>basics_description()<\/em>\u00a0when\u00a0<em>$wp_query-&gt;found_posts<\/em>\u00a0is empty (no result found)<strong>[inc\/functions-display.php]<\/strong><\/li>\n<li>Move\u00a0<em>$content_width<\/em>\u00a0into\u00a0<em>basics_setup()<\/em>\u00a0function\u00a0<strong>[inc\/functions-setup.php]<\/strong><\/li>\n<li>Add link to comments and display number of comments to the function\u00a0<em>basics_posted_in()<\/em>\u00a0<strong>[inc\/functions-display.php]<\/strong><\/li>\n<li>Remove\u00a0<em>div#logo<\/em>\u00a0<strong>[header.php]<\/strong><\/li>\n<li>Wrap &lt;h1&gt; in &lt;hgroup&gt; with\u00a0<em>a#site-title<\/em>\u00a0to replace\u00a0<em>div#logo<\/em>\u00a0<strong>[header.php]<\/strong><\/li>\n<li>Change some CSS to match the two changes above\u00a0<strong>[author.css]<\/strong><\/li>\n<li>Update jQuery lib to version 1.6.4\u00a0<strong>[\/js\/libs\/]<\/strong><\/li>\n<li>Change paths to jQuery lib to reflect change above\u00a0<strong>[footer.php]<\/strong><\/li>\n<li>Empty\u00a0<em>author.css<\/em>\u00a0to keep the theme &#8220;blank&#8221; (author.css should be reused in a Child theme) and change comment in\u00a0<strong>[style.css]<\/strong><\/li>\n<li>Update\u00a0<strong>readme.txt<\/strong>\u00a0to reflect the changes.<\/li>\n<li>Cosmetic changes in comments layout\u00a0<strong>[style.css]<\/strong><\/li>\n<li>Add\u00a0<em>basics_favicon()<\/em>\u00a0function to print links for favicons. Make the customization in a Child theme easier<strong>[functions-display.php]<\/strong>,\u00a0<strong>[header.php]<\/strong><\/li>\n<li>Remove indentation in tag\u00a0<strong>[header.php]<\/strong><\/li>\n<li>Remove final trailing slash in\u00a0<em>link rel=&#8221;pingback&#8221;<\/em>\u00a0tag\u00a0<strong>[header.php]<\/strong><\/li>\n<li>Remove tag\u00a0<em>post-formats<\/em>,\u00a0<em>featured-images<\/em>\u00a0<strong>[style.css]<\/strong><\/li>\n<li>Add\u00a0<em>basics_jquery()<\/em>\u00a0function to load jQuery properly with\u00a0<em>wp_enqueue_script()<\/em>\u00a0<strong>[inc\/functions-filter-action.php]<\/strong><\/li>\n<li>Add\u00a0<em>basics_scripts()<\/em>\u00a0function to load the other scripts or librarie in a customizable way for authors<strong>[inc\/functions-filter-action.php]<\/strong><\/li>\n<li>Add HTML comment to explain where authors could manage jQuery and other scripts\u00a0<strong>[footer.php]<\/strong><\/li>\n<li>Add\u00a0<em>basics_i_love_wordpress()<\/em>\u00a0function to display mini logo instead of hard printing it\u00a0<strong>[footer.php]<\/strong><\/li>\n<li>Remove\u00a0<em>.visuallyhidden<\/em>\u00a0classes\u00a0<strong>[footer.php]<\/strong>,\u00a0<strong>[header.php]<\/strong>,\u00a0<strong>[inc\/functions-display.php]<\/strong>,\u00a0<strong>[searchform.php]<\/strong><\/li>\n<li>Change\u00a0<em>home_url( &#8216;\/&#8217; )<\/em>\u00a0to\u00a0<em>bloginfo( &#8216;name&#8217; )<\/em>\u00a0in label tag\u00a0<strong>[searchform.php]<\/strong><\/li>\n<li>Update the .po file for french translation<\/li>\n<li>Move of\u00a0<strong>[content-404.php]<\/strong>,\u00a0<strong>[content-news.php]<\/strong>\u00a0and\u00a0<strong>[home.php]<\/strong>\u00a0files in Child theme\u00a0<em>Beyond Basics<\/em>\u00a0to make Basics more&#8230; basic!<\/li>\n<li>Add\u00a0<em>edit_post_link()<\/em>\u00a0in\u00a0<em>basics_posted_in()<\/em>\u00a0allowing authors to edit their posts\u00a0<strong>[inc\/functions-display.php]<\/strong><\/li>\n<li>Change message when\u00a0<em>! comments_open() &amp;&amp; is_page()<\/em>\u00a0with a sprintf for easier translation for the contact page\u00a0<strong>[comments.php]<\/strong><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In this new version 0.2.7.1 of WordPress Basics, I&#8217;ve focused on optimizations and consistencies, starting with the functions.php file, that\u00a0I\u00a0decomposed in many specialized files, like functions-setup.php, functions-display.php, functions-filter-action.php and functions-comment.php, for now. I&#8217;ve change the way the logo is marked up in the header.php in a HTML5 way,\u00a0putting into practice\u00a0the advices of\u00a0the &hellip; <a href=\"https:\/\/4design.xyz\/wordpress-basics\/wordpress-basics-0-2-7-ch-ch-ch-ch-changes\" rel=\"nofollow\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[20,22,29,58,90,91,108],"_links":{"self":[{"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/posts\/486"}],"collection":[{"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":0,"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"wp:attachment":[{"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4design.xyz\/wordpress-basics\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}