Viewing 1 reply thread
  • Author
    Posts
    • #2579
      slim
      Member

      Within the demos ‘Add New’ page, in the ‘Validation’ Tab, the ‘File Name’ field’s sanitization rules don’t work! It can’t convert the words to a valid file name. However, it works in ‘Demo Settings’ page.

      When I puts my code in wp-content/themes/twentyfourteen/piklist/parts/meta-boxes/field.php

      
      <?php
      /*
      Title: Validation Fields
      Post Type: post
      Order: 30
      */
        piklist('field', array(
          'type' => 'text'
          ,'label' => 'File Name'
          ,'field' => 'file_name'
          ,'description' => 'Converts multiple words to a valid file name - by slim'
          ,'sanitize' => array(
            array(
              'type' => 'file_name'
            )
          )
          ,'attributes' => array(
            'class' => 'large-text'
          )
        ));
      
      ?>
      

      It shows the meta box in the post edit page, but the sanitization rules don’t work too!

      My wordpress version is 4.0.

    • #2601
      Steve
      Keymaster

      @slim– We were able to reproduce and will work on a fix.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.