Ver Fonte

Bumped version to 0.0.40

Jannick Knudsen há 4 anos atrás
pai
commit
b3023b90be
5 ficheiros alterados com 7 adições e 6 exclusões
  1. 1 1
      VERSION
  2. 1 0
      VERSIONLOG
  3. 1 1
      package.json
  4. 2 2
      plug_login.php
  5. 2 2
      plugin.php

+ 1 - 1
VERSION

@@ -1 +1 @@
-v0.0.39
+v0.0.40

+ 1 - 0
VERSIONLOG

@@ -38,3 +38,4 @@ v0.0.36
 v0.0.37
 v0.0.38
 v0.0.39
+v0.0.40

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "dagsplug",
-  "version": "0.0.39",
+  "version": "0.0.40",
   "description": "",
   "main": "script_backend.js",
   "scripts": {

+ 2 - 2
plug_login.php

@@ -229,13 +229,13 @@ if (!class_exists("plug_login")) {
 
 		function login_head() {
 			$type = (empty($_REQUEST['type']) || !($_REQUEST['type'] == "Select" || $_REQUEST['type'] == "Pro")) ? " " : $_REQUEST['type'];
-//			$type = "Perspektiv";
+			$type = "";
 			if ($type !== "") {
 				?>
 		<script type='text/javascript' src='/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
 		<script type="text/javascript">
 			jQuery(document).ready(function(){
-				if(jQuery("form").attr('action').indexOf('register')>-1){
+				if(jQuery("form").length>0 && jQuery("form").attr('action').indexOf('register')>-1){
 					jQuery("form").prepend('<h3><?php echo ($type) ?></h3><br>');
 					jQuery("p:contains('Brugernavn')").hide();
 

+ 2 - 2
plugin.php

@@ -4,7 +4,7 @@ Plugin Name: dagsopt
 Plugin URI: https://git.tum.dk/tum.dk/dagsplug/
 Description: Tools
 Author: iskedk
-Version: 0.0.39
+Version: 0.0.40
 Date: 2021-01-14
 Author URI: https://iske.dk/
 Text Domain: dagsopt
@@ -17,7 +17,7 @@ function wppluginspage() {
 $wp_dagsopt = new dagsopt();
 
 class dagsopt {
-	var $version = "0.0.39";
+	var $version = "0.0.40";
 	var $publish_date = "2021-01-14";
 	var $pluginname;
 	var $plugintitle;