mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-11-03 20:05:53 +01:00 
			
		
		
		
	Fixed bug with frontmatter being killed when in Expert Mode #1345
				
					
				
			This commit is contained in:
		@@ -10,6 +10,7 @@
 | 
			
		||||
    * Fixed issues with minimum PHP versions in resource upgrades
 | 
			
		||||
    * Fixed issue with default lang translation in admin [#1361](https://github.com/getgrav/grav-plugin-admin/issues/1361)
 | 
			
		||||
    * Typos in `Tools` -> `Direct Install` page [#1345](https://github.com/getgrav/grav-plugin-admin/issues/1345)
 | 
			
		||||
    * Fixed bug with frontmatter being killed when in `Expert Mode` [#1345](https://github.com/getgrav/grav-plugin-admin/issues/1354)
 | 
			
		||||
    
 | 
			
		||||
# v1.7.0-rc.3
 | 
			
		||||
## 02/15/2018
 | 
			
		||||
 
 | 
			
		||||
@@ -1841,9 +1841,8 @@ class AdminController extends AdminBaseController
 | 
			
		||||
        if (isset($input['frontmatter']) && isset($input['content'])) {
 | 
			
		||||
            $page->raw("---\n" . (string)$input['frontmatter'] . "\n---\n" . (string)$input['content']);
 | 
			
		||||
            unset($input['content']);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (isset($input['header'])) {
 | 
			
		||||
        // Handle header normally
 | 
			
		||||
        } elseif (isset($input['header'])) {
 | 
			
		||||
            $header = $input['header'];
 | 
			
		||||
 | 
			
		||||
            foreach ($header as $key => $value) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user