Changeset 684285
- Timestamp:
- 03/19/2013 03:58:01 PM (13 years ago)
- Location:
- multiple-content-blocks
- Files:
-
- 15 added
- 4 edited
-
tags/3.0.1 (added)
-
tags/3.0.1/README.md (added)
-
tags/3.0.1/assets (added)
-
tags/3.0.1/assets/css (added)
-
tags/3.0.1/assets/css/admin.css (added)
-
tags/3.0.1/assets/inc (added)
-
tags/3.0.1/assets/inc/class.MCB.php (added)
-
tags/3.0.1/assets/inc/functions.template-tags.php (added)
-
tags/3.0.1/assets/languages (added)
-
tags/3.0.1/assets/languages/mcb-nl_NL.mo (added)
-
tags/3.0.1/assets/languages/mcb-nl_NL.po (added)
-
tags/3.0.1/multiple-content-blocks.php (added)
-
tags/3.0.1/readme.txt (added)
-
tags/3.0.1/screenshot-1.png (added)
-
tags/3.0.1/screenshot-2.png (added)
-
trunk/assets/inc/class.MCB.php (modified) (2 diffs)
-
trunk/assets/inc/functions.template-tags.php (modified) (1 diff)
-
trunk/multiple-content-blocks.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
multiple-content-blocks/trunk/assets/inc/class.MCB.php
r631702 r684285 33 33 global $post; 34 34 35 if($this->get_blocks($post->ID)) add_meta_box('multiple-content-blocks-box',__('Multiple content blocks','mcb'),array($this,'meta_box'),$post->post_type,'normal','high'); 35 $type = get_post_type_object($post->post_type); 36 if($type->public && $this->get_blocks($post->ID)) add_meta_box('multiple-content-blocks-box',__('Multiple content blocks','mcb'),array($this,'meta_box'),$post->post_type,'normal','high'); 36 37 } 37 38 … … 62 63 */ 63 64 function save_blocks($post_id) { 64 if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')) : 65 65 if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && ((!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || @$_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest'))) : 66 66 $blocks = $this->get_blocks($post_id); 67 67 if(is_wp_error($blocks)) $blocks = $this->get_blocks($post_id,false); -
multiple-content-blocks/trunk/assets/inc/functions.template-tags.php
r631702 r684285 67 67 function mcb_refresh_blocks() { 68 68 global $post; 69 delete_post_meta($post->ID,'mcb-blocks');69 if(isset($post)) delete_post_meta($post->ID,'mcb-blocks'); 70 70 } 71 71 add_action('wp_head','mcb_refresh_blocks'); -
multiple-content-blocks/trunk/multiple-content-blocks.php
r631702 r684285 4 4 Plugin URI: https://github.com/trendwerk/multiple-content-blocks/ 5 5 Description: Allow for more content blocks in WordPress than just the one. 6 Version: 3.0. 16 Version: 3.0.2 7 7 Author: Ontwerpstudio Trendwerk 8 8 Author URI: https://github.com/trendwerk/ -
multiple-content-blocks/trunk/readme.txt
r631702 r684285 4 4 Tags: multiple,content,blocks,multiplecontent,page,pageblocks,columns,custom 5 5 Requires at least: 3.0 6 Tested up to: 3. 4.27 Stable tag: 3.0. 16 Tested up to: 3.5.1 7 Stable tag: 3.0.2 8 8 9 9 Allow for more content blocks in WordPress than just the one.
Note: See TracChangeset
for help on using the changeset viewer.