From 6742bbc6fe15c01dac4a6c10f411ae4a2e443342 Mon Sep 17 00:00:00 2001 From: jmash Date: Mon, 29 Dec 2008 02:07:57 +0000 Subject: [PATCH] v1.2.1 fix menu position for wp2.7 git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@82775 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- README.txt | 5 ++++- pagemash.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index 191b8c2..e5b42d2 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: JoelStarnes Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide, Requires at least: 2.1 Tested up to: 2.7 -Stable tag: 1.2.0 +Stable tag: 1.2.1 Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows for quick sorting, hiding and organising of page parenting structure in a simple intuative manner. @@ -55,6 +55,9 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and ==Change Log== += 1.2.1 = + - fix for menu position in WP2.7 + = 1.2.0 = - Introduces multi-lingual support. - Adds German translation diff --git a/pagemash.php b/pagemash.php index bf4dadf..4e21771 100644 --- a/pagemash.php +++ b/pagemash.php @@ -4,7 +4,7 @@ Plugin Name: pageMash Plugin URI: http://joelstarnes.co.uk/pagemash/ Description: Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows quick sorting, hiding and organising of page structure. Author: Joel Starnes -Version: 1.2.0 +Version: 1.2.1 Author URI: http://joelstarnes.co.uk/ */ @@ -199,7 +199,7 @@ function pageMash_add_excludes($excludes){ function pageMash_add_pages(){ //add menu link - global $minlevel; + global $minlevel, $wp_version; if($wp_version >= 2.7){ $page = add_submenu_page('edit-pages.php', 'pageMash page order', __('pageMash ','pmash'), $minlevel, __FILE__, 'pageMash_main'); }else{