Skip to content

Commit

Permalink
Merge pull request #4 from takien/master
Browse files Browse the repository at this point in the history
Little fix
  • Loading branch information
randyhoyt committed Jan 26, 2013
2 parents 7447760 + 2a15d1e commit f8cdc5d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions wp-category-meta.php
Expand Up @@ -133,7 +133,7 @@ function wptm_createTable($wpdb, $table_name)
PRIMARY KEY (`meta_id`),
KEY `terms_id` (`terms_id`),
KEY `meta_key` (`meta_key`)
) ENGINE=MyISAM AUTO_INCREMENT=6887 DEFAULT CHARSET=utf8;";
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;";

$results = $wpdb->query($sql);
}
Expand Down Expand Up @@ -195,7 +195,8 @@ function wptm_init() {
*
*/
function wptm_admin_enqueue_scripts() {
if(is_admin() && isset($_REQUEST["taxonomy"])) {
global $pagenow,$wptm_version;
if( 'edit-tags.php' == $pagenow ) {
// chargement des styles
wp_register_style('thickbox-css', '/wp-includes/js/thickbox/thickbox.css');
wp_enqueue_style('thickbox-css');
Expand All @@ -204,6 +205,7 @@ function wptm_admin_enqueue_scripts() {
wp_enqueue_script('media-upload');
wp_enqueue_script('quicktags');
wp_enqueue_script('wp-category-meta-scripts','/wp-content/plugins/wp-category-meta/js/wp-category-meta-scripts.js');
wp_enqueue_style('wptm_style', plugins_url('wp-category-meta.css', __FILE__),false,$wptm_version);
}
}

Expand Down Expand Up @@ -494,9 +496,6 @@ function wptm_add_meta_textinput($tag)
if(!is_null($metaList) && count($metaList) > 0 && $metaList != '')
{
?>
<link rel="stylesheet"
href="/wp-content/plugins/wp-category-meta/wp-category-meta.css"
type="text/css" media="screen" />
<div id="categorymeta" class="postbox">
<h3 class='hndle'><span><?php _e('Term meta', 'wp-category-meta');?></span></h3>
<div class="inside"><input value="wptm_edit" type="hidden"
Expand Down

0 comments on commit f8cdc5d

Please sign in to comment.