I hereby claim:
- I am sp4r74cus on github.
- I am sp4r74cus (https://keybase.io/sp4r74cus) on keybase.
- I have a public key ASBPWltqg40EIneWbecm2GAXJKFvKNvkGE95Y_MceGVzGgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Linux | |
wp post update $(wp rest post list --before="`date -u +%Y-%m-%dT%H:%M:%SZ -d "1 year ago"`" \ | |
--format=ids --per_page=1) --post_date="`date '+%Y-%m-%d %H:%M:%S'`" --post_date_gmt="`date -u '+%Y-%m-%d %H:%M:%S'`" \ | |
--post_modified="`date '+%Y-%m-%d %H:%M:%S'`" --post_modified_gmt="`date -u '+%Y-%m-%d %H:%M:%S'`" | |
# Mac OSX | |
wp post update $(wp rest post list --before="`date -v -1y +%Y-%m-%dT%H:%M:%SZ`" \ | |
--format=ids --per_page=1) --post_date="`date '+%Y-%m-%d %H:%M:%S'`" --post_date_gmt="`date -u '+%Y-%m-%d %H:%M:%S'`" \ | |
--post_modified="`date '+%Y-%m-%d %H:%M:%S'`" --post_modified_gmt="`date -u '+%Y-%m-%d %H:%M:%S'`" |
// change login page logo image | |
function my_login_head() { | |
?> | |
<style> | |
body.login #login h1 a { | |
background: url(<?= get_bloginfo('template_url'); ?>/images/logo.png) no-repeat scroll center top transparent; | |
height: 60px; | |
width: 330px; | |
} | |
</style> |
<?php | |
/* | |
* Redirect to the post page if category have only one post | |
* --------------------------------------------------------- | |
* | |
*/ | |
function yh_redirect_to_post() { | |