Changeset 731426
- Timestamp:
- 06/25/2013 09:51:12 AM (13 years ago)
- Location:
- usernoise/trunk
- Files:
-
- 6 edited
-
admin/settings.php (modified) (1 diff)
-
inc/controller.php (modified) (1 diff)
-
inc/model.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
usernoise.php (modified) (1 diff)
-
vendor/plugin-options-framework/plugin-options-framework.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
usernoise/trunk/admin/settings.php
r705432 r731426 39 39 'title' => __('Enable Usernoise', 'usernoise'), 'label' => __('Enable Usernoise', 'usernoise'), 40 40 'default' => '0'), 41 array('type' => 'checkbox', 'name' => UN_PUBLISH_DIRECTLY, 'title' => __('Publish feedback directly without approval', 'usernoise'), 42 'label' => __('Publish feedback directly without approval', 'usernoise'), 'default' => 0), 41 43 array('type' => 'checkbox', 'name' => UN_SHOW_POWERED_BY, 42 44 'title' => __('Show Powered by', 'usernoise'), -
usernoise/trunk/inc/controller.php
r731399 r731426 35 35 if (isset($_REQUEST['email']) && $_REQUEST['email'] == un_get_option(UN_FEEDBACK_EMAIL_PLACEHOLDER)) 36 36 $_REQUEST['email'] = ''; 37 38 37 $errors = $un_model->validate_feedback_form(stripslashes_deep($_REQUEST)); 39 38 if (empty($errors)){ -
usernoise/trunk/inc/model.php
r703458 r731426 68 68 69 69 public function create_feedback($params){ 70 global $un_settings; 70 71 if (isset($params['title']) && $params['title']) 71 72 $title = $params['title']; … … 77 78 'post_title' => apply_filters('un_feedback_title', $title, $params), 78 79 'post_content' => apply_filters('un_feedback_content', $content, $params), 79 'post_status' => 'pending',80 'post_status' => un_get_option(UN_PUBLISH_DIRECTLY) ? 'publish' : 'pending', 80 81 'post_author' => 0 81 82 )); -
usernoise/trunk/readme.txt
r731399 r731426 107 107 * RTL-related CSS fixes 108 108 * Mobile detection using Mobile Detect library by Serban Ghita 109 * An option to allow direct publishing. 109 110 110 111 = 3.7.4 = -
usernoise/trunk/usernoise.php
r731399 r731426 37 37 define('UN_FEEDBACK_FORM_SHOW_TYPE', 'feedback_form_show_type'); 38 38 define('UN_FEEDBACK_FORM_SHOW_EMAIL', 'feedback_form_show_email'); 39 define('UN_PUBLISH_DIRECTLY', 'publish_directly'); 39 40 if (!defined('UN_ENABLED')){ 40 41 define('UN_ENABLED', 'enabled'); -
usernoise/trunk/vendor/plugin-options-framework/plugin-options-framework.php
r621573 r731426 354 354 if (isset($field['disabled']) && $field['disabled']) 355 355 $attr['disabled'] = 'disabled'; 356 if (isset($field['readonly']) && $field['readonly']) 357 $attr['disabled'] = 'readonly'; 358 356 359 $attr['class'] = $this->field_classes(array('textarea'), $field); 357 360 $attr['rows'] = isset($field['rows']) ? $field['rows'] : get_option('default_post_edit_rows');
Note: See TracChangeset
for help on using the changeset viewer.