Skip to content

Commit

Permalink
Merge branch 'release/3.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkingorg committed Nov 12, 2013
2 parents b722202 + d5a91de commit 10c729e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

## 3.7

- Add support for "sticky" posts (sticky.php, single-sticky.php, feed-sticky.php) in the post context
- Set default context to archive instead of home
- Properly load type-* templates in General context
- Requires WordPress 3.6 (for get_post() returning global $post)
- (feature) Add support for "sticky" posts (sticky.php, single-sticky.php, feed-sticky.php) in the post context
- (change) Set default context to archive instead of home
- (change) Requires WordPress 3.6 (for get_post() returning global $post)
- (fix) Properly load type-* templates in General context
- (fix) Output %Y as expected in admin settings for copyright field

## 3.4

Expand Down
4 changes: 2 additions & 2 deletions utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function cfct_banner($str = '') {
* @return mixed Value of the option
*
**/
function cfct_get_option($name) {
function cfct_get_option($name, $admin = true) {
$defaults = array(
cfct_option_name('login_link_enabled') => 'yes',
cfct_option_name('copyright') => sprintf(__('Copyright © %s  ·  %s', 'carrington'), date('Y'), get_bloginfo('name')),
Expand All @@ -85,7 +85,7 @@ function cfct_get_option($name) {
$value = $defaults[$basename];
}
}
if ($name == cfct_option_name('copyright')) {
if (!$admin && $name == cfct_option_name('copyright')) {
$value = str_replace('%Y', date('Y'), $value);
}

Expand Down

0 comments on commit 10c729e

Please sign in to comment.