{"id":23,"date":"2012-09-17T12:21:37","date_gmt":"2012-09-17T10:21:37","guid":{"rendered":"http:\/\/www.dolicapax.org\/?p=23"},"modified":"2012-09-17T12:23:00","modified_gmt":"2012-09-17T10:23:00","slug":"make-wordpress-3-4-2-show-double-hyphens","status":"publish","type":"post","link":"https:\/\/www.dolicapax.org\/?p=23","title":{"rendered":"Make WordPress 3.4.2 show double hyphens"},"content":{"rendered":"<p>By default WordPress shortens two dashes or hyphens (&#8211;) to a single dash (-). Not very practical if you need to show a command that uses double-dash options such as the \u00a0&#8220;&#8211;all-databases&#8221; in the previous post about mysqldump over ssh.<\/p>\n<p>I found that this\u00a0behavior\u00a0could be altered by editing <em>wp-includes\/formatting.php<\/em> and removing the third element of each of the arrays on line 73 and 74 (<em>$static_characters<\/em> and <em>$static_replacements<\/em>).<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default WordPress shortens two dashes or hyphens (&#8211;) to a single dash (-). Not very practical if you need to show a command that uses double-dash options such as the \u00a0&#8220;&#8211;all-databases&#8221; in the previous post about mysqldump over ssh. &hellip; <a href=\"https:\/\/www.dolicapax.org\/?p=23\">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":[4],"tags":[5],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-tech","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":3,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}