Esempio n. 1
0
 public function save_gallery_options()
 {
     global $post;
     if (isset($post)) {
         if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
             return $post->ID;
         }
         if (!current_user_can('edit_post', $post->ID)) {
             return $post->ID;
         }
         $options = new MaxGalleryOptions($post->ID);
         $options->save_options();
     }
 }
 public function save_options($options = null)
 {
     if ($this->get_template() == 'image-tiles') {
         $options = $this->get_options();
         parent::save_options($options);
     }
 }