Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ComicPress 2.9.2.25 Almost done push.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
commit 74030f87c4ff1a4613b571f8de8e98a1ceac4b91 1 parent dd960a0
Philip M. Hofer (Frumph) authored
View
2  404.php
@@ -5,7 +5,7 @@
<div class="post-content">
<h2 class="pagetitle"><?php _e('Page Not Found','comicpress'); ?></h2>
<p><a href="<?php bloginfo('url') ?>"><?php _e('Click here to return to the home page','comicpress'); ?></a> <?php _e('or try a search:','comicpress'); ?></p>
- <p><?php the_widget('WP_Widget_Search'); ?></p>
+ <p><?php get_search_form(); ?></p>
</div>
<div class="post-foot"></div>
</div>
View
5 archive-comic-year.php
@@ -40,6 +40,10 @@
<div class="post-foot"></div>
</div>
+<?php
+endwhile;
+?>
+
<div <?php post_class(); ?>>
<div class="post-head"></div>
<div class="post-content">
@@ -67,5 +71,4 @@
</div>
<div class="post-foot"></div>
</div>
-<?php endwhile; ?>
<?php get_footer() ?>
View
13 changelog.txt
@@ -4,15 +4,22 @@ adding comic-id-# ($post->id) as a wrap with #comic-wrap so that it can be targe
added check to see if on the comic_next for hovering over to see if its empty or not, if it is do a # instead of empty ""
Removed comicpress-debug.php, so no debug messages anymore
Removed copyright.php, it hasnt been in use in a long time
+changed the <div for the post title in the comic blog post widget to an h2 so that ttf replacer plugins can handle it
+fixed the /?randomcomic /?randompost to have &nocache=1 on the line so that wp-supercache doesn't cache it
+implemented easel's menubar code which uses less CSS then the new comicpress's /cleaned up code/ no images for down arrow -> right arrow no, is text characters
+fixed classic menubar's error with the comicpress_get_all_comic_categories_as_cat_string() when its supposed to be: comicpress_all_comic_categories_string()
+You can now assign comics to individual posts, which means.. yes.. multiple comics per day with multiple posts. A little bit extra work than just uploading but works great.
+Still need to make comicpress managers bulk editor recognize which comic is assigned to it and think about making an assign comic box for the post editor.
+Added new widget "Donation" widget which lets you set a 'target' donation amount and then set how much in donations you currently have and it displays a nice little donation image percentile of how far its got to go to get the target mark
+Fixed Notice that appears on 404 and search pages when no results found.
+
2.9.2.23
-Adjusted "The Footer" back to just "Footer" the browsers that can't handle it will just have to be SOL
+Fixed footer - the-footer problem with widgets in the footer area
made the is_cp_theme_layout into a function_exists so that it can be rehandled in the child-functions.php
2.9.2.22
Added ?latestcomic=# where # = category #
So you can do ?latestcomic and it will redirect to the latest comic of all categories
or latestcomic = 3 will redirect to the latestcomic of category ID #3
-
custom image header now defaults to click to home
-
View
2  footer.php
@@ -1,7 +1,7 @@
<?php get_template_part('layout', 'foot'); ?>
<div id="footer">
<?php
-if (is_active_sidebar('footer')) get_sidebar('footer');
+if (is_active_sidebar('the-footer')) get_sidebar('footer');
if (!comicpress_themeinfo('disable_footer_text')) {
echo comicpress_footer_text();
View
20 functions.php
@@ -113,7 +113,7 @@
__('Over Blog', 'comicpress'),
__('Blog', 'comicpress'),
__('Under Blog', 'comicpress'),
- __('Footer', 'comicpress')
+ __('The Footer', 'comicpress')
) as $sidebartitle) {
register_sidebar(array(
'name'=> $sidebartitle,
@@ -127,13 +127,10 @@
}
}
-// This theme uses wp_nav_menu() in 2 locations. (if wp3.0)
-if (function_exists('register_nav_menus')) {
- register_nav_menus( array(
- 'menubar' => __( 'Menubar', 'comicpress' )
-// 'footer' => __( 'Footer', 'comicpress' )
- ) );
-}
+
+register_nav_menus(array(
+ 'menubar' => __( 'Menubar', 'comicpress' )
+));
@@ -253,7 +250,7 @@ function comicpress_footer_text() {
$output .= __('Powered by','comicpress') . " <a href=\"http://wordpress.org/\">WordPress</a> " . __('with','comicpress'). " <a href=\"http://comicpress.org/\">ComicPress</a>\r\n";
$output .= "<span class=\"footer-subscribe\">";
$output .= "<span class=\"footer-pipe\">|</span>";
- $output .= "Subscribe: <a href=\"" . get_bloginfo('rss_url') ."\">RSS</a>\r\n";
+ $output .= "Subscribe: <a href=\"" . get_bloginfo('rss2_url') ."\">RSS</a>\r\n";
$output .= "</span>\r\n";
if (comicpress_themeinfo('enable_scroll_to_top')) {
$output .= "<span class=\"footer-uptotop\">";
@@ -475,7 +472,8 @@ function comicpress_load_options() {
'enable_comment_javascript' => true,
'disable_showing_members_category' => true,
'enable_multicomic_jquery' => false,
- 'enable_equal_height_sidebars' => false
+ 'enable_equal_height_sidebars' => false,
+ 'prefab_design' => 'none'
) as $field => $value) {
$comicpress_options[$field] = $value;
@@ -518,7 +516,7 @@ function comicpress_themeinfo($whichinfo = null) {
if ($comicpress_themeinfo['enable-storyline-support']) {
// This is now sep. to make sure that it only loads when it needs to
$comicpress_storyline = array(
- 'category_tree' => comicpress_create_comic_category_tree(),
+ 'category_tree' => comicpress_create_category_tree(),
'storyline-category-order' => get_option('comicpress-storyline-category-order')
);
$comicpress_themeinfo = array_merge($comicpress_themeinfo, $comicpress_storyline);
View
2  functions/displaycomic.php
@@ -215,8 +215,6 @@ function comicpress_display_comic() {
return $output;
}
-
-
if (!function_exists('comicpress_comic_clicks_next')) {
function comicpress_comic_clicks_next($output) {
global $post, $wp_query;
View
2  functions/redirects.php
@@ -20,6 +20,7 @@ function comicpress_random_comic() {
if ($randomComicQuery->have_posts()) {
$randomComicQuery->the_post();
$random_comic_id = get_the_ID();
+ define('DONOTCACHEPAGE', true);
wp_redirect( get_permalink( $random_comic_id ) );
}
exit;
@@ -34,6 +35,7 @@ function comicpress_random_post() {
while ($randomComicQuery->have_posts()) : $randomComicQuery->the_post();
$random_comic_id = get_the_ID();
endwhile;
+ define('DONOTCACHEPAGE', true);
wp_redirect( get_permalink( $random_comic_id ) );
exit;
}
View
3  header.php
@@ -28,8 +28,7 @@
</head>
<body <?php body_class(); ?>>
-<?php
-do_action('comicpress-body');
+<?php
if (is_active_sidebar('above-header')) get_sidebar('above');
?>
<div id="page-head"></div>
View
7 js/ddsmoothmenu.js
@@ -16,7 +16,7 @@
var ddsmoothmenu = {
//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
- arrowimages: { down: ['downarrowclass', '/wp-content/themes/comicpress/images/down.gif', 23], right: ['rightarrowclass', '/wp-content/themes/comicpress/images/right.gif'] },
+ arrowimages: { down: ['downarrowclass', '/wp-content/themes/easel/images/down.gif', 23], right: ['rightarrowclass', '/wp-content/themes/easel/images/right.gif'] },
transition: { overtime: 200, outtime: 200 }, //duration of slide in/ out animation, in milliseconds
shadow: { enable: false, offsetx: 2, offsety: 2 }, //enable shadow?
showhidedelay: { showdelay: 100, hidedelay: 200 }, //set delay in milliseconds before sub menus appear and disappear, respectively
@@ -64,9 +64,8 @@ var ddsmoothmenu = {
this.istopheader = $curobj.parents("ul").length == 1 ? true : false //is top level header?
$subul.css({ top: this.istopheader && setting.orientation != 'v' ? this._dimensions.h + "px" : 0 })
$curobj.children("a:eq(0)").css(this.istopheader ? { paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images
- '<img src="' + (this.istopheader && setting.orientation != 'v' ? smoothmenu.arrowimages.down[1] : smoothmenu.arrowimages.right[1])
- + '" class="' + (this.istopheader && setting.orientation != 'v' ? smoothmenu.arrowimages.down[0] : smoothmenu.arrowimages.right[0])
- + '" style="border:0;" />'
+ '<span class="arrowclass">' + (this.istopheader && setting.orientation != 'v' ? '&darr;' : '&rarr;')
+ + '</span>'
)
if (smoothmenu.shadow.enable) {
this._shadowoffset = { x: (this.istopheader ? $subul.offset().left + smoothmenu.shadow.offsetx : this._dimensions.w), y: (this.istopheader ? $subul.offset().top + smoothmenu.shadow.offsety : $curobj.position().top)} //store this shadow's offsets
View
2  js/menubar.js
@@ -1,7 +1,7 @@
ddsmoothmenu.init({
mainmenuid: "menubar-wrapper", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
- classname: 'menubar', //class added to menu's outer DIV
+ classname: 'menu', //class added to menu's outer DIV
customtheme: ["Transparent", "Transparent"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
});
View
31 options/themestyle.php
@@ -64,7 +64,36 @@ function showimage(sel,pic) {
</td>
</tr>
</table>
-
+ <table class="widefat" cellspacing="0">
+ <thead>
+ <tr>
+ <th colspan="4"><?php _e('Child Themes','comicpress'); ?></th>
+ </tr>
+ </thead>
+ <tr>
+ <td colspan="5">
+ These child themes can be downloaded from either <a href="http://comicpress.org/download/" target="_blank">ComicPress.org</a> or <a href="http://frumph.net/downloads/comicpress-child-themes/" target="_blank">Frumph.NET</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ List Child Themes Available Here
+ </td>
+ </tr>
+ </table>
+
+ <table class="widefat" cellspacing="0">
+ <thead>
+ <tr>
+ <th colspan="4"><?php _e('Color Scheme','comicpress'); ?></th>
+ </tr>
+ </thead>
+ <tr>
+ <td colspan="5">
+ Coming Soon.
+ </td>
+ </tr>
+ </table>
<div class="clear"></div>
</div>
View
2  search.php
@@ -34,7 +34,7 @@
<div class="post-content">
<h3><?php _e('No entries found.','comicpress'); ?></h3>
<p><?php _e('Try another search?','comicpress'); ?></p>
- <p><?php the_widget('WP_Widget_Search'); ?></p>
+ <p><?php get_search_form(); ?></p>
</div>
<div class="post-foot"></div>
</div>
View
2  sidebar-footer.php
@@ -1,3 +1,3 @@
<div id="sidebar-footer" class="customsidebar <?php if (comicpress_themeinfo('enable_widgetarea_use_sidebar_css')) { ?> sidebar<?php } ?>">
- <?php dynamic_sidebar('footer'); ?>
+ <?php dynamic_sidebar('the-footer'); ?>
</div>
View
235 style.css
@@ -189,74 +189,8 @@ h4, h4 a {
clear: both;
display: block;
margin: 0 auto;
- background: #000;
-}
-
-/* THIS SECTION LOADS BEFORE THE JAVASCRIPT */
-
-/* This section makes sure the menubar looks good before loading or jquery disabled
--------------------------------------------------------------- */
-
-#menubar-wrapper .menu-header,
-div.menu {
- font-size: 13px;
- margin-left: 12px;
-}
-#menubar-wrapper .menu-header ul,
-div.menu ul {
- list-style: none;
- margin: 0;
-}
-#menubar-wrapper .menu-header li,
-div.menu li {
- float: left;
- position: relative;
-}
-#menubar-wrapper a {
- display: block;
- text-decoration: none;
-}
-#menubar-wrapper ul ul {
-/* box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
- -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
- -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); */
- display: none;
- position: absolute;
- top: 38px;
- left: 0;
- float: left;
- z-index: 99999;
-}
-#menubar-wrapper ul ul li {
- min-width: 160px;
-}
-#menubar-wrapper ul ul ul {
- left: 100%;
- top: 0;
-}
-#menubar-wrapper ul ul a {
- height: auto;
-}
-#menubar-wrapper li:hover > a,
-#menubar-wrapper ul ul :hover > a {
-/* background: #333;
- color: #fff; */
-}
-#menubar-wrapper ul li:hover > ul {
- display: block;
-}
-#menubar-wrapper ul li.current_page_item > a,
-#menubar-wrapper ul li.current-menu-ancestor > a,
-#menubar-wrapper ul li.current-menu-item > a,
-#menubar-wrapper ul li.current-menu-parent > a {
-/* color: #fff; */
-}
-* html #menubar-wrapper ul li.current_page_item a,
-* html #menubar-wrapper ul li.current-menu-ancestor a,
-* html #menubar-wrapper ul li.current-menu-item a,
-* html #menubar-wrapper ul li.current-menu-parent a,
-* html #menubar-wrapper ul li a:hover {
-/* color: #fff; */
+ text-transform: uppercase;
+ background: #111;
}
.ie #menubar-wrapper {
@@ -317,13 +251,11 @@ div.menu li {
background: #414141;
}
-.menubar {
-/* font: bold 12px Verdana; */
-/* background: #414141; background of menu bar (default state)*/
+.menu {
float: left;
}
-.menubar ul {
+.menu ul {
z-index: 100;
margin: 0;
padding: 0;
@@ -331,50 +263,57 @@ div.menu li {
}
/*Top level list items*/
-.menubar ul li {
+.menu ul li {
position: relative;
display: inline;
float: left;
}
/*Top level menu link items style*/
-.menubar ul li a {
+.menu ul li a {
display: block;
padding: 5px 10px;
text-decoration: none;
}
-.menubar ul li ul li a {
+.menu ul li ul li a {
text-align: left;
- background: #414141; /* background of menu items (default state)*/
+ background: #555; /* background of menu items (default state)*/
}
-* html .menubar ul li a {
+* html .menu ul li a {
/*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}
-.menubar ul li a:link, .menubar ul li a:visited {
+/* this is the color of the non-hovered text in the menubar */
+.menu ul li a:link, .menu ul li a:visited {
color: #fff;
}
-.menubar ul li ul li a:link, .menubar ul li ul li a:visited {
+.menu ul li ul li a:link, .menu ul li ul li a:visited {
color: #fff;
+ font-size: 12px;
}
-.menubar ul li a.selected {
+.menu ul li a.selected {
/*CSS class that's dynamically added to the currently active menu items' LI A element*/
- background: #000;
+ background: #888;
color: #fff;
}
-.menubar ul li a:hover {
+.menu ul li a:hover {
color: #fff;
- background: #132800; /*background of menu items during onmouseover (hover state)*/
+ background: #414141; /*background of menu items during onmouseover (hover state)*/
+}
+
+/* this is the color of the text in the menubar when its on that page */
+.menu .current_page_item a {
+ color: #fcff00 !important;
}
/*1st sub level menu*/
-.menubar ul li ul {
+.menu ul li ul {
position: absolute;
left: 0;
display: none; /*collapse all sub menus to begin with*/
@@ -382,30 +321,26 @@ div.menu li {
}
/*Sub level menu list items (undo style from Top level List Items)*/
-.menubar ul li ul li {
+.menu ul li ul li {
display: list-item;
float: none;
}
/*All subsequent sub menu levels vertical offset after 1st level sub menu */
-.menubar ul li ul li ul {
+.menu ul li ul li ul {
top: 0;
}
/* Sub level menu links style */
-.menubar ul li ul li a {
+.menu ul li ul li a {
font: normal 13px Verdana;
width: 160px; /*width of sub menus*/
padding: 5px;
margin: 0;
}
-.menubar .current_page_item a {
- color: #f00;
-}
-
/* Holly Hack for IE \*/
-* html .menubar {
+* html .menu {
height: 1%;
}
/*Holly Hack for IE7 and below*/
@@ -413,119 +348,11 @@ div.menu li {
/* ######### CSS classes applied to down and right arrow images ######### */
-.downarrowclass {
- position: absolute;
- top: 9px;
- right: 7px;
-}
-
-.rightarrowclass {
+.arrowclass {
position: absolute;
- top: 6px;
- right: 5px;
-}
-
-/* classic menubar */
-
-/* THE MENU */
-
-#menubar {
- background: #000;
- text-align: left;
- list-style: none;
-}
-
-.ie #menubar {
- zoom: 1; /* IE fix, allows for variable height menu */
-}
-
-#menu {
- text-transform: capitalize;
- padding: 0;
- margin: 0;
- list-style: none;
- float: left;
- line-height: 25px;
- font-size: 12px;
-}
-
-#menu a {
- padding: 0px 10px 0 10px;
- display: block;
- color: #fff;
- text-decoration: none;
-}
-
-#menu li .rss {
- padding: 5px 0 5px 0;
-}
-
-#menu li {
- float: left;
- cursor: pointer;
-}
-
-#menu li:hover a, #menu li.sfhover a {
- color: #fff; /* Main menu highlighted text color */
-}
-
-#menu li:hover, #menu li.sfhover {
- background: #f00; /* Main menu highlighted background color */
-}
-
-.sfhover {
- padding: 0;
- margin: 0;
-}
-
-/* For submenu dropdowns - this order must be maintained */
-
-#menu ul {
- padding: 0;
- margin: 0;
- list-style: none;
- position: absolute;
- left: -9999px;
- width: 195px;
- line-height: 1;
-}
-#menu li li {
- width: 185px;
- padding: 4px 5px;
- color: #fff;
-}
-#menu li li a {
- width: 194px;
- padding: 0;
- color: #fff;
- border: none;
-}
-#menu li ul ul {
- margin: -16px 0 0 190px;
-}
-#menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a {
- color: #fff; /*Submenu highlighted text color */
-}
-#menu li:hover li a, #menu li li:hover li a, #menu li li li:hover li a, #menu li li li li:hover li a {
- color: #fff; /*Submenu text color */
- border: none;
- background: none;
-}
-#menu li li:hover {
- background: #f00; /*Submenu highlighted background color */
-}
-#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul {
- left: -9999px;
-}
-#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul {
- left: auto;
- background: #000; /* Submenu background color */
- text-transform: none;
-}
-
-#menu .current_page_item a {
- color: #fff;
- background: #800;
+ top: 2;
+ margin-left: 2px;
+ font-size: 11px;
}
/* THE COMIC */
View
2  widgets/classicmenubar.php
@@ -27,7 +27,7 @@ function comicpress_classic_menubar() {
<?php if (comicpress_themeinfo('enable_navigation_in_menubar')) {
Protect(); ?>
<?php if (is_home() && !comicpress_themeinfo('disable_comic_frontpage')) {
- $comicMenubar = new WP_Query(); $comicMenubar->query('showposts=1&cat='.comicpress_get_all_comic_categories_as_cat_string());
+ $comicMenubar = new WP_Query(); $comicMenubar->query('showposts=1&cat='.comicpress_all_comic_categories_string());
while ($comicMenubar->have_posts()) : $comicMenubar->the_post();
global $wp_query;
$temp_query = $wp_query->is_single;
View
2  widgets/comic-navigation.php
@@ -168,7 +168,7 @@ function sharethis() {
}
if ($instance['last']) {
if (!empty($last_comic) && ($last_comic != $this_permalink)) {
- if ($instance['lastgohome']) { ?>
+ if (isset($instance['lastgohome']) && $instance['lastgohome']) { ?>
<a href="/" class="navi navi-last" title="<?php echo $instance['last_title']; ?>"><?php echo $instance['last_title']; ?></a>
<?php } else { ?>
<a href="<?php echo $last_comic; ?>" class="navi navi-last" title="<?php echo $instance['last_title']; ?>"><?php echo $instance['last_title']; ?></a>
View
2  widgets/comicblogpost.php
@@ -33,7 +33,7 @@ function widget($args, $instance) {
$wp_query->is_single = true;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
if (!empty($title)) { echo "<div class=\"comic-post-widget-header\">".$title."</div>\r\n"; }
- if ($instance['showtitle']) { echo "<div class=\"comic-post-widget-title\">".get_the_title()."</div>\r\n"; }
+ if ($instance['showtitle']) { echo "<h2 class=\"comic-post-widget-title\">".get_the_title()."</h2>\r\n"; }
if ($instance['showdate']) { echo "<div class=\"comic-post-widget-date\">".get_the_time('F jS, Y')."</div>\r\n"; }
the_content();
if ($instance['showcommentlink']) comicpress_display_comment_link();
View
24 widgets/menubar.php
@@ -14,16 +14,17 @@ function comicpress_menubar() {
include(get_stylesheet_directory() . '/custom-menubar.php');
} else { ?>
<div id="menubar-wrapper">
- <div class="menunav">
- <?php if (comicpress_themeinfo('enable_search_in_menubar')) { ?>
- <div class="menunav-search">
- <?php get_search_form(); ?>
- </div>
- <?php } ?>
- <?php if (comicpress_themeinfo('enable_rss_in_menubar')) { ?>
- <a href="<?php bloginfo('rss_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
- <?php } ?>
- <?php if (comicpress_themeinfo('enable_navigation_in_menubar')) { ?>
+ <?php do_action('comicpress-menubar-before'); ?>
+ <div class="menunav">
+ <?php if (comicpress_themeinfo('enable_search_in_menubar')) { ?>
+ <div class="menunav-search">
+ <?php get_search_form(); ?>
+ </div>
+ <?php } ?>
+ <?php if (comicpress_themeinfo('enable_rss_in_menubar')) { ?>
+ <a href="<?php bloginfo('rss2_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
+ <?php } ?>
+ <?php if (comicpress_themeinfo('enable_navigation_in_menubar')) { ?>
<?php if (is_home() && !comicpress_themeinfo('disable_comic_frontpage')) {
$comicMenubar = new WP_Query(); $comicMenubar->query('showposts=1&cat='.comicpress_all_comic_categories_string());
while ($comicMenubar->have_posts()) : $comicMenubar->the_post();
@@ -47,7 +48,8 @@ function comicpress_menubar() {
<?php } ?>
<?php } ?>
</div>
- <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menubar', 'theme_location' => 'menubar' ) ); ?>
+ <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu', 'theme_location' => 'menubar' ) ); ?>
+ <?php do_action('comicpress-menubar-after'); ?>
<div class="clear"></div>
</div>
<?php }
View
2  widgets/randomcomic.php
@@ -24,7 +24,7 @@ function widget($args, $instance) {
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?>
- <h2 class="randomcomic"><a href="/?randomcomic"><span class="random-comic-icon">?</span> <?php _e('Random Comic','comicpress'); ?></a></h2>
+ <h2 class="randomcomic"><a href="/?randomcomic&nocache=1"><span class="random-comic-icon">?</span> <?php _e('Random Comic','comicpress'); ?></a></h2>
<?php
echo $after_widget;
}
View
2  widgets/randompostlink.php
@@ -24,7 +24,7 @@ function widget($args, $instance) {
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?>
- <h2 class="randompost"><a href="/?randompost"><?php _e('Random Post','comicpress'); ?></a></h2>
+ <h2 class="randompost"><a href="/?randompost&nocache=1"><?php _e('Random Post','comicpress'); ?></a></h2>
<?php
echo $after_widget;
}

0 comments on commit 74030f8

Please sign in to comment.
Something went wrong with that request. Please try again.