Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

3.0.4 release

  • Loading branch information...
commit b7f8ce6ad09ed1b8b2035ca565170640bba631e4 1 parent 5739d1d
Michael Sisk authored
Showing with 9 additions and 4 deletions.
  1. +1 −1  readme.txt
  2. +5 −1 webcomic-includes/admin.php
  3. +3 −2 webcomic.php
View
2  readme.txt
@@ -4,7 +4,7 @@ Donate link: http://webcomicms.net/
Tags: webcomic, comic, multiple comics, storylines, chapters, library, management, themes, posts, publish, custom post type, custom taxonomy, template tags, widgets
Requires at least: 3.0
Tested up to: 3.0
-Stable tag: 3.0.3
+Stable tag: 3.0.4
Comic publishing power for WordPress.
View
6 webcomic-includes/admin.php
@@ -399,7 +399,11 @@ function hook_admin_menu() {
$this->domain();
if ( !$this->option( 'uninstall' ) ) {
- add_menu_page( __( 'Webcomic', 'webcomic' ), __( 'Webcomic', 'webcomic' ), 'upload_files', 'webcomic_files', array( &$this, 'admin_files' ), $this->url . 'webcomic-includes/icon-small.png', 3 );
+ global $menu;
+
+ $p = ( isset( $menu[ 3 ] ) ) ? false : 3;
+
+ add_menu_page( __( 'Webcomic', 'webcomic' ), __( 'Webcomic', 'webcomic' ), 'upload_files', 'webcomic_files', array( &$this, 'admin_files' ), $this->url . 'webcomic-includes/icon-small.png', $p );
$pages[ 'webcomics' ] = add_submenu_page( 'webcomic_files', __( 'Webcomic Files', 'webcomic' ), __( 'Webcomics', 'webcomic' ), 'upload_files', 'webcomic_files', array( &$this, 'admin_files' ) );
$pages[ 'storylines' ] = add_submenu_page( 'webcomic_files', __( 'Webcomic Storylines', 'webcomic' ), __( 'Storylines', 'webcomic' ), 'manage_categories', 'webcomic_storyline', array( &$this, 'admin_terms' ) );
$pages[ 'characters' ] = add_submenu_page( 'webcomic_files', __( 'Webcomic Characters', 'webcomic' ), __( 'Characters', 'webcomic' ), 'manage_categories', 'webcomic_character', array( &$this, 'admin_terms' ) );
View
5 webcomic.php
@@ -4,7 +4,7 @@
Plugin Name: Webcomic
Plugin URI: http://webcomicms.net/
Description: Comic publishing power for WordPress. Create, manage, and share your webcomics like never before.
-Version: 3.0.3
+Version: 3.0.4
Author: Michael Sisk
Author URI: http://maikeruon.com/
@@ -42,7 +42,7 @@
class webcomic extends mgs_core {
/** Override mgs_core variables */
protected $name = 'webcomic';
- protected $version = '3.0.3';
+ protected $version = '3.0.4';
protected $file = __FILE__;
protected $type = 'plugin';
@@ -348,6 +348,7 @@ function get_the_webcomic_embed( $format, $size, $key = false, $id = false ) {
* @param str $taxonomy A taxonomy to limit the returned ID's to.
* @param int|arr $terms A term ID or array of term ID's. Required if $taxonomy is not false.
* @param int $id Webcomic ID that returned ID's will be relative to.
+ * @param bool $global Uses URL parameters instead of regular permalink if true.
* @return An array of webcomic ID's, or false on error.
*/
function get_relative_webcomics( $taxonomy = false, $terms = false, $id = false, $global = false ) {
Please sign in to comment.
Something went wrong with that request. Please try again.