Changeset 2856:b9ae6bf9bd6e for plugins/pages/page.php
- Timestamp:
- 12/17/14 11:40:49 (11 years ago)
- Branch:
- 2.7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/page.php
r2854 r2856 285 285 286 286 $admin_post_behavior = ''; 287 if ($post_editor && !empty($post_editor[$post_format])) { 288 $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'page', array('#post_excerpt','#post_content')); 287 if ($post_editor) { 288 $p_edit = $c_edit = ''; 289 if (!empty($post_editor[$post_format])) { 290 $p_edit = $post_editor[$post_format]; 291 } 292 if (!empty($post_editor['xhtml'])) { 293 $c_edit = $post_editor['xhtml']; 294 } 295 if ($p_edit == $c_edit) { 296 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 297 $p_edit,'page',array('#post_excerpt','#post_content','#comment_content')); 298 } else { 299 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 300 $p_edit,'page',array('#post_excerpt','#post_content')); 301 $admin_post_behavior .= $core->callBehavior('adminPostEditor', 302 $c_edit,'comment',array('#comment_content')); 303 } 289 304 } 290 305
Note: See TracChangeset
for help on using the changeset viewer.