Parcourir la source

! Doh! ... wrong var used for the preview length restriction (was post :P)

Spuds il y a 13 ans
Parent
commit
a292160321
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Sources/ManagePosts.php

+ 1 - 1
Sources/ManagePosts.php

@@ -255,7 +255,7 @@ function ModifyPostSettings($return_config = false)
 		
 		// If we're changing the post preview length let's check its valid
 		if (!empty($_POST['preview_characters']))
-			$_POST['max_messageLength'] = (int) min(max(0, $_POST['max_messageLength']), 512);
+			$_POST['preview_characters'] = (int) min(max(0, $_POST['preview_characters']), 512);
 
 		call_integration_hook('integrate_save_post_settings');