viktorthang / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
0 stars 0 forks source link

Validation doesn't work on fields created by cctm_post_form shortcode #552

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Built in or even custom validators doesn't work for custom fields with type 
text. Any valid or invalid value passes as valid one.

Using cctm_post_form in custom wordpress page from plugin:
<?php
echo do_shortcode(
    '[cctm_post_form post_type="server" post_status="publish" _redirect="' . get_option('servers_list') . '"]Thank you submitting server![/cctm_post_form]'
);

*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.7.13-pl
WordPress Version: 3.8.2
PHP Version: 5.3.10-1ubuntu3
MySQL Version: 5.5.22-0ubuntu1
Server OS: Linux
Language: 
------------------------ 
ACTIVE PLUGINS: 
 * Custom Content Type Manager : Advanced Custom Post Types v.0.9.7.13 [http://code.google.com/p/wordpress-custom-content-type-manager/]
 * Debug My Plugin v.0.9.2 [http://www.charlestonsw.com/product/debug-my-plugin/]
 * Login With Ajax v.3.1.2 [http://wordpress.org/extend/plugins/login-with-ajax/]
 * Minecraft Servers List v.0.1 [http://gameproof.net]
 * Nginx Helper v.1.8 [http://rtcamp.com/nginx-helper/]
------------------------ 
CURRENT THEME: Twenty Fourteen v.1.0 http://wordpress.org/themes/twentyfourteen

Original issue reported on code.google.com by na...@napas.lt on 9 Apr 2014 at 4:40

GoogleCodeExporter commented 8 years ago

Original comment by ever...@fireproofsocks.com on 9 Apr 2014 at 5:25

GoogleCodeExporter commented 8 years ago
This requires refactoring in Github.  The cctm_post_form doesn't trigger on the 
same events as the regular saves.

Original comment by ever...@fireproofsocks.com on 11 May 2015 at 5:18