{"id":29958,"date":"2017-05-03T03:01:53","date_gmt":"2017-05-02T17:01:53","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=29958"},"modified":"2020-02-16T13:31:18","modified_gmt":"2020-02-16T03:31:18","slug":"ssl-wordpress-twentyten-theme-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/ssl-wordpress-twentyten-theme-primer-tutorial\/","title":{"rendered":"SSL WordPress TwentyTen Theme Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"SSL WordPress TwentyTen Theme Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/wordpress\/ssl_it.jpg\" title=\"SSL WordPress TwentyTen Theme Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">SSL WordPress TwentyTen Theme Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s <a target=_blank title='SSL information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Transport_Layer_Security'>SSL<\/a> quest was to get our WordPress 4.1.1 website to accept &#8230;<\/p>\n<p><code><br \/>\n<a target=_blank title=\"https:\/\/www.rjmprogramming.com.au\/ITblog\" href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\">https:\/\/www.rjmprogramming.com.au\/ITblog<\/a><br \/>\n... as well as the old ...<br \/>\n<a target=_blank title=\"HTTP:\/\/www.rjmprogramming.com.au\/ITblog\" href=\"HTTP:\/\/www.rjmprogramming.com.au\/ITblog\">htt<i><\/i>p:\/\/www.rjmprogramming.com.au\/ITblog<\/a><br \/>\n<\/code><\/p>\n<p> &#8230; and after a long struggle we&#8217;re there.  And while we are there, let&#8217;s jot down lots of the steps we undertook for our TwentyTen Theme blog website &#8230;<\/p>\n<ol>\n<li>MySql itblog Database changes for WordPress 4.1.1 in phpMyAdmin &#8230; were not needed &#8230; but for WordPress 3.0.3&#8217;s _wordpress Database these changes below were needed &#8230;\n<ul>\n<li>wp-options `mods_Twenty Ten` field &#8230; wherever you have any <i>ht<\/i><i>tp:\/\/<\/i> make this <i>\/\/<\/i><\/li>\n<li>wp-links `link_url` field &#8230; wherever you have any <i>ht<\/i><i>tp:\/\/<\/i> make this <i>\/\/<\/i><\/li>\n<\/ul>\n<\/li>\n<li>https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-admin\/ Settings tab &#8230;\n<ul>\n<li>Marquee News Ticker (which you may not have) mentions of <i>ht<\/i><i>tp:\/\/<\/i> make <i>\/\/<\/i> at https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-admin\/options-general.php?page=marquee-style-rss-news-ticker\/marquee-style-rss-news-ticker-3-0-0.php<\/li>\n<li>Widgets that are home grown at https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-admin\/widgets.php need to be checked for <i>ht<\/i><i>tp:\/\/<\/i> to make <i>\/\/<\/i><\/li>\n<\/ul>\n<\/li>\n<li>https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-includes\/ &#8230;\n<ul>\n<li>general-template.php and post-template.php &#8230; need a function like &#8230;<br \/>\n<code><br \/>\nfunction sslidea($ins) {<br \/>\n  $outs=$ins;<br \/>\n  return str_replace(\"ht<i><\/i>tp:\/\/\", \"\/\/\", str_replace(\"=ht<i><\/i>tp\", \"=HTTP\",  str_replace(\"ht<i><\/i>tp:\/\/localhost\", \"HTTP:\/\/localhost\", $outs)));<br \/>\n}<br \/>\n<\/code><br \/>\n&#8230; encase &#8220;string&#8221; return ( and echo <b>sslidea(<\/b>$var<b>)<\/b>; ) values (that aren&#8217;t date nor time related)\n<\/ul>\n<\/li>\n<li>https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-content\/themes\/twentyten\/ &#8230;\n<ul>\n<li>have a look at (good ol&#8217;) header.php (and any associated Javascript like wajax.js and nothing.js), and footer.php for <i>ht<\/i><i>tp:\/\/<\/i> to <i>\/\/<\/i> mappings<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>And how do you know you&#8217;re getting anywhere with this work?  We used the Firefox&#8217;s Tools-&gt;Web Developer-&gt;Inspector Console tab for this, as it warns you about Mixed Content issues.  &#8220;Mixed Content&#8221; issues are where your web browser address bar URL has <i>https:\/\/<\/i> but some images or HTML iframe or some other media content or other HTML content has an absolute URL containing <i>ht<\/i><i>tp:\/\/<\/i> at its start.  It&#8217;s these, in the underlying PHP code, that are better referred to with <i>\/\/<\/i> and let the web browser choose the appropriate protocol according to the lead of the web browser (or Curl) web URL.<\/p>\n<p>Each blog and each theme platform of that blog may need attention, so we&#8217;re off to see to that now.  Hope to have you back again soon.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d29958' onclick='var dv=document.getElementById(\"d29958\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/ssl\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d29958' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s SSL quest was to get our WordPress 4.1.1 website to accept &#8230; https:\/\/www.rjmprogramming.com.au\/ITblog &#8230; as well as the old &#8230; https:\/\/www.rjmprogramming.com.au\/ITblog &#8230; and after a long struggle we&#8217;re there. And while we are there, let&#8217;s jot down lots of &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/ssl-wordpress-twentyten-theme-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[9,12,37],"tags":[52,151,299,386,2192,3226,827,932,938,997,1114,1682,1319,1324,1325,1345,1456],"class_list":["post-29958","post","type-post","status-publish","format-standard","hentry","category-database","category-elearning","category-tutorials","tag-absolute-url","tag-blog","tag-database-2","tag-encryption","tag-firefox-inspector","tag-mixed-content","tag-mysql","tag-php","tag-phpmyadmin","tag-programming","tag-security","tag-ssl","tag-tutorial","tag-twentyten","tag-twentyten-theme","tag-url","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/29958"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=29958"}],"version-history":[{"count":20,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/29958\/revisions"}],"predecessor-version":[{"id":33102,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/29958\/revisions\/33102"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=29958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=29958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=29958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}