Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/includes/helper-functions.php:306 | 1 | wp_parse_args($args, array('form_format' => '<form class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data" encoding="multipart/form-data"><input type="hidden" name="object_id" value="%2$s">%3$s<input type="submit" name="submit-cmb" value="%4$s" class="button-primary"></form>', 'save_button' => esc_html__('Save', 'cmb2'), 'object_type' => $cmb->mb_object_type( ), 'cmb_styles' => $cmb->prop('cmb_styles'), 'enqueue_js' => $cmb->prop('enqueue_js'), )) |
/includes/CMB2_Field.php:455 | 1 | wp_parse_args($args, array('type' => $this->object_type, 'id' => $this->object_id, 'field_id' => $this->id(true), 'repeat' => $this->args('repeatable'), 'single' => !$this->args('multiple'), )) |
/includes/types/CMB2_Type_Wysiwyg.php:55 | 1 | sprintf('<div class="cmb2-wysiwyg-wrap">%s', parent::render(array('id' => $this->sanitize_id($this->_id( )), 'class' => 'cmb2_textarea cmb2-wysiwyg-placeholder', 'data-groupid' => $this->sanitize_id($field->group->id( )), 'data-iterator' => $field->group->index, 'data-fieldid' => $this->sanitize_id($field->id(true)), 'desc' => '</div>' . $this->_desc(true), ))) |
/includes/CMB2_Field_Display.php:495 | 1 | cmb2_do_oembed(array('url' => $this->value, 'object_id' => $this->field->object_id, 'object_type' => $this->field->object_type, 'oembed_args' => array('width' => '300', ), 'field_id' => $this->field->id( ), )) |
/includes/types/CMB2_Type_Select.php:16 | 1 | $a = $this->parse_args('select', array('class' => 'cmb2_select', 'name' => $this->_name( ), 'id' => $this->_id( ), 'desc' => $this->_desc(true), 'options' => $this->concat_items( ), )) |
/includes/types/CMB2_Type_Text.php:44 | 1 | $a = $this->parse_args($this->type, array('type' => 'text', 'class' => 'regular-text', 'name' => $this->_name( ), 'id' => $this->_id( ), 'value' => $this->field->escaped_value( ), 'desc' => $this->_desc(true), 'js_dependencies' => array( ), ), $args) |
/includes/types/CMB2_Type_Textarea.php:24 | 1 | $a = $this->parse_args('textarea', array('class' => 'cmb2_textarea', 'name' => $this->_name( ), 'id' => $this->_id( ), 'cols' => 60, 'rows' => 10, 'value' => $this->field->escaped_value('esc_textarea'), 'desc' => $this->_desc(true), ), $args) |
/includes/types/CMB2_Type_Multicheck.php:27 | 1 | $args = $this->parse_args($this->type, array('class' => $classes, 'options' => $this->concat_items(array('name' => $this->_name( ) . '[]', 'method' => 'list_input_checkbox', )), 'desc' => $this->_desc(true), )) |
/includes/types/CMB2_Type_File.php:26 | 1 | $this->args = $this->parse_args('file', array('class' => 'cmb2-upload-file regular-text', 'id' => $this->_id( ), 'name' => $this->_name( ), 'value' => $field->escaped_value( ), 'id_value' => null, 'desc' => $this->_desc(true), 'size' => 45, 'js_dependencies' => 'media-editor', 'preview_size' => $field->args('preview_size'), 'query_args' => $field->args('query_args'), 'type' => array_key_exists('url', $options) && false === $options['url'] ? 'hidden' : 'text', ), $args) |
/includes/types/CMB2_Type_File.php:26 | 1 | $a = $this->args = $this->parse_args('file', array('class' => 'cmb2-upload-file regular-text', 'id' => $this->_id( ), 'name' => $this->_name( ), 'value' => $field->escaped_value( ), 'id_value' => null, 'desc' => $this->_desc(true), 'size' => 45, 'js_dependencies' => 'media-editor', 'preview_size' => $field->args('preview_size'), 'query_args' => $field->args('query_args'), 'type' => array_key_exists('url', $options) && false === $options['url'] ? 'hidden' : 'text', ), $args) |
/includes/types/CMB2_Type_Radio.php:36 | 1 | $args = $this->parse_args($this->type, array('class' => 'cmb2-radio-list cmb2-list', 'options' => $this->concat_items(array('label' => 'test', 'method' => 'list_input', )), 'desc' => $this->_desc(true), )) |
/includes/types/CMB2_Type_Oembed.php:20 | 1 | $oembed = !empty($meta_value) ? cmb2_ajax( )->get_oembed(array('url' => $field->escaped_value( ), 'object_id' => $field->object_id, 'object_type' => $field->object_type, 'oembed_args' => array('width' => '640', ), 'field_id' => $this->_id('', false), )) : '' |
/includes/types/CMB2_Type_Wysiwyg.php:25 | 1 | $a = $this->parse_args('wysiwyg', array('id' => $this->_id('', false), 'value' => $field->escaped_value('stripslashes'), 'desc' => $this->_desc(true), 'options' => $field->options( ), )) |
/includes/types/CMB2_Type_Multi_Base.php:35 | 1 | $a = $this->parse_args('list_input', array('type' => 'radio', 'class' => 'cmb2-option', 'name' => $this->_name( ), 'id' => $this->_id($i), 'value' => $this->field->escaped_value( ), 'label' => '', ), $args) |
/includes/types/CMB2_Type_Title.php:28 | 1 | $a = $this->parse_args('title', array('tag' => $tag, 'class' => empty($name) ? 'cmb2-metabox-title-anchor' : 'cmb2-metabox-title', 'name' => $name, 'desc' => $this->_desc(true), 'id' => str_replace('_', '-', sanitize_html_class($this->field->id( ))), )) |
/includes/CMB2_JS.php:198 | 1 | $l10n = array('fields' => self::$fields, 'ajax_nonce' => wp_create_nonce('ajax_nonce'), 'ajaxurl' => admin_url('/admin-ajax.php'), 'script_debug' => $debug, 'up_arrow_class' => 'dashicons dashicons-arrow-up-alt2', 'down_arrow_class' => 'dashicons dashicons-arrow-down-alt2', 'user_can_richedit' => user_can_richedit( ), 'defaults' => array('code_editor' => false, 'color_picker' => false, 'date_picker' => array('changeMonth' => true, 'changeYear' => true, 'dateFormat' => _x('mm/dd/yy', 'Valid formatDate string for jquery-ui datepicker', 'cmb2'), 'dayNames' => explode(',', esc_html__('Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday', 'cmb2')), 'dayNamesMin' => explode(',', esc_html__('Su, Mo, Tu, We, Th, Fr, Sa', 'cmb2')), 'dayNamesShort' => explode(',', esc_html__('Sun, Mon, Tue, Wed, Thu, Fri, Sat', 'cmb2')), 'monthNames' => explode(',', esc_html__('January, February, March, April, May, June, July, August, September, October, November, December', 'cmb2')), 'monthNamesShort' => explode(',', esc_html__('Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec', 'cmb2')), 'nextText' => esc_html__('Next', 'cmb2'), 'prevText' => esc_html__('Prev', 'cmb2'), 'currentText' => esc_html__('Today', 'cmb2'), 'closeText' => esc_html__('Done', 'cmb2'), 'clearText' => esc_html__('Clear', 'cmb2'), ), 'time_picker' => array('timeOnlyTitle' => esc_html__('Choose Time', 'cmb2'), 'timeText' => esc_html__('Time', 'cmb2'), 'hourText' => esc_html__('Hour', 'cmb2'), 'minuteText' => esc_html__('Minute', 'cmb2'), 'secondText' => esc_html__('Second', 'cmb2'), 'currentText' => esc_html__('Now', 'cmb2'), 'closeText' => esc_html__('Done', 'cmb2'), 'timeFormat' => _x('hh:mm TT', 'Valid formatting string, as per http://trentrichardson.com/examples/timepicker/', 'cmb2'), 'controlType' => 'select', 'stepMinute' => 5, ), ), 'strings' => array('upload_file' => esc_html__('Use this file', 'cmb2'), 'upload_files' => esc_html__('Use these files', 'cmb2'), 'remove_image' => esc_html__('Remove Image', 'cmb2'), 'remove_file' => esc_html__('Remove', 'cmb2'), 'file' => esc_html__('File:', 'cmb2'), 'download' => esc_html__('Download', 'cmb2'), 'check_toggle' => esc_html__('Select / Deselect All', 'cmb2'), ), ) |
/includes/CMB2_Hookup.php:908 | 1 | $can_save = ($this->cmb->prop('save_fields') && isset($_POST[$this->cmb->nonce( )]) && wp_verify_nonce($_POST[$this->cmb->nonce( )], $this->cmb->nonce( )) && !(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) && ($type && in_array($type, $this->cmb->box_types( ))) && !(is_multisite( ) && ms_is_switched( ))) |
/includes/rest-api/CMB2_REST_Controller.php:372 | 1 | $schema = array('$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'CMB2', 'type' => 'object', 'properties' => array('description' => array('description' => __('A human-readable description of the object.', 'cmb2'), 'type' => 'string', 'context' => array('view', ), ), 'name' => array('description' => __('The id for the object.', 'cmb2'), 'type' => 'integer', 'context' => array('view', ), ), 'name' => array('description' => __('The title for the object.', 'cmb2'), 'type' => 'string', 'context' => array('view', ), ), ), ) |
/includes/rest-api/CMB2_REST_Controller_Fields.php:25 | 1 | $args = array('_embed' => array('description' => __('Includes the box object which the fields are registered to in the response.', 'cmb2'), ), '_rendered' => array('description' => __('When the \'_rendered\' argument is passed, the renderable field attributes will be returned fully rendered. By default, the names of the callback handers for the renderable attributes will be returned.', 'cmb2'), ), 'object_id' => array('description' => __('To view or modify the field\'s value, the \'object_id\' and \'object_type\' arguments are required.', 'cmb2'), ), 'object_type' => array('description' => __('To view or modify the field\'s value, the \'object_id\' and \'object_type\' arguments are required.', 'cmb2'), ), ) |
/includes/rest-api/CMB2_REST_Controller_Fields.php:471 | 1 | $links = array('self' => array('href' => rest_url(trailingslashit($boxbase) . 'fields/' . $field->_id('', false) . $query_string), ), 'collection' => array('href' => rest_url(trailingslashit($boxbase) . 'fields' . $query_string), ), 'up' => array('embeddable' => true, 'href' => rest_url($boxbase . $query_string), ), ) |
/includes/CMB2_Field.php:298 | 1 | $data = is_array($data) && isset($data[$this->group->index][$this->args('_id')]) ? $data[$this->group->index][$this->args('_id')] : false |
/includes/CMB2_Field.php:996 | 1 | $conditional_classes = array('cmb-type-' . str_replace('_', '-', sanitize_html_class($this->type( ))) => true, 'cmb2-id-' . str_replace('_', '-', sanitize_html_class($this->id( ))) => true, 'cmb-repeat' => $this->args('repeatable'), 'cmb-repeat-group-field' => $this->group, 'cmb-inline' => $this->args('inline'), 'table-layout' => 'edit' === $this->render_context && in_array($this->type( ), $repeat_table_rows_types), ) |
/includes/CMB2_Utils.php:93 | 1 | $image_sizes[$size] = array('height' => intval(get_option("{$size}_size_h")), 'width' => intval(get_option("{$size}_size_w")), 'crop' => get_option("{$size}_crop") ? get_option("{$size}_crop") : false, ) |
/includes/CMB2_Hookup.php:375 | 1 | $field = new CMB2_Field(array('field_args' => $this->columns[$column_name]['field'], 'object_type' => $this->object_type, 'object_id' => $this->cmb->object_id($object_id), 'cmb_id' => $this->cmb->cmb_id, )) |
/includes/helper-functions.php:320 | 1 | if($cmb->prop('save_fields') && isset($_POST['submit-cmb'], $_POST['object_id'], $_POST[$cmb->nonce( )]) && wp_verify_nonce($_POST[$cmb->nonce( )], $cmb->nonce( )) && $object_id && $_POST['object_id'] == $object_id) { /**/ } |