Plugin Directory

Changeset 850407


Ignore:
Timestamp:
02/03/2014 09:21:53 AM (12 years ago)
Author:
himadriganguly
Message:
  • update custom-post-type-helper-class in tag version 1.0.0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • jquery-latest-news-ticker/tags/1.0.0/includes/custom-post-type-helper-class.php

    r850320 r850407  
    77        private $post_type_name;
    88        private $post_type_args;
    9         private $post_type_labels;
    10         private $post_domain;
     9        private $post_type_labels; 
     10        private $post_domain;   
    1111       
    1212        private $updated_message;
    1313               
    1414        public function __construct( $name, $args = array(), $labels = array(), $updated_message=NULL )
    15         {           
     15        {
     16                                   
    1617            // Set some important variables
    1718            $this->post_type_name       = uglify($name);
     
    187188        {
    188189            global $metabox_data;
    189             global $metabox_fields;
    190            
    191             $post_type_name = $this->post_type_name;
     190            global $metabox_fields;         
     191           
     192            $post_type_name = $this->post_type_name;           
    192193           
    193194            $metabox_data                                       = $meta_box;
     
    226227                                                                                                           
    227228                                                        // Output the field
    228                                                         metabox_container( $field, $fields['args']['box_context'], $this->post_domain );
     229                                                        metabox_container( $field, $fields['args']['box_context'], $fields['args']['post_domain'] );
    229230                                                    }
    230231                                                ?>
     
    237238                                    $box_context,
    238239                                    $box_priority,
    239                                     array('fields' => $fields, 'box_context' => $box_context )
     240                                    array('fields' => $fields, 'box_context' => $box_context, 'post_domain' => $this->post_domain )
    240241                                );
    241242                            }
Note: See TracChangeset for help on using the changeset viewer.