@@ -9,8 +9,8 @@ |
||
| 9 | 9 | $context = Timber::get_context(); |
| 10 | 10 | $post = new Post(); |
| 11 | 11 | $context['form'] = [ |
| 12 | - 'url' => site_url('/wp-login.php?action=postpass', 'login_post'), |
|
| 13 | - 'inputId' => empty($post->id) ? mt_rand() : $post->id |
|
| 12 | + 'url' => site_url('/wp-login.php?action=postpass', 'login_post'), |
|
| 13 | + 'inputId' => empty($post->id) ? mt_rand() : $post->id |
|
| 14 | 14 | ]; |
| 15 | 15 | |
| 16 | 16 | return Timber::fetch('index.twig', $context); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * clone |
| 29 | 29 | * |
| 30 | 30 | * Prevent cloning with 'protected' keyword |
| 31 | - **/ |
|
| 31 | + **/ |
|
| 32 | 32 | protected function __clone() |
| 33 | 33 | { |
| 34 | 34 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * constructor |
| 38 | 38 | * |
| 39 | 39 | * Prevent instantiation with 'protected' keyword |
| 40 | - **/ |
|
| 40 | + **/ |
|
| 41 | 41 | protected function __construct() |
| 42 | 42 | { |
| 43 | 43 | } |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\TinyMce; |
| 4 | 4 | |
| 5 | -use Flynt\Utils\Feature; |
|
| 6 | 5 | use Flynt\Utils\Asset; |
| 7 | 6 | |
| 8 | 7 | // Load TinyMCE Settings from config file |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Flynt\Features\AdminNotices\AdminNoticeManager; |
| 14 | 14 | use Flynt\Features\CustomPostTypes\CustomPostTypeRegister; |
| 15 | 15 | use Flynt\Utils\Feature; |
| 16 | -use Flynt\Utils\FileLoader; |
|
| 17 | 16 | use Flynt\Utils\StringHelpers; |
| 18 | 17 | |
| 19 | 18 | class OptionPages |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\BaseStyle; |
| 4 | 4 | |
| 5 | -use Timber\Timber; |
|
| 6 | -use Flynt\ComponentManager; |
|
| 7 | - |
|
| 8 | 5 | if (current_user_can('editor') || (WP_ENV !== 'production')) { |
| 9 | 6 | add_filter('init', 'Flynt\Features\BaseStyle\registerRewriteRule'); |
| 10 | 7 | add_filter('template_include', 'Flynt\Features\BaseStyle\templateInclude'); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\YoutubeNoCookieEmbed; |
| 4 | 4 | |
| 5 | -use Flynt\Utils\Oembed; |
|
| 6 | - |
|
| 7 | 5 | add_action('oembed_result', 'Flynt\Features\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); |
| 8 | 6 | add_filter('embed_oembed_html', 'Flynt\Features\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); |
| 9 | 7 | |
@@ -9,24 +9,24 @@ |
||
| 9 | 9 | add_action('wp_enqueue_scripts', function () { |
| 10 | 10 | Component::enqueueAssets('DocumentDefault', [ |
| 11 | 11 | [ |
| 12 | - 'name' => 'console-polyfill', |
|
| 13 | - 'type' => 'script', |
|
| 14 | - 'path' => 'vendor/console.js' |
|
| 12 | + 'name' => 'console-polyfill', |
|
| 13 | + 'type' => 'script', |
|
| 14 | + 'path' => 'vendor/console.js' |
|
| 15 | 15 | ], |
| 16 | 16 | [ |
| 17 | - 'name' => 'babel-polyfill', |
|
| 18 | - 'type' => 'script', |
|
| 19 | - 'path' => 'vendor/babel-polyfill.js' |
|
| 17 | + 'name' => 'babel-polyfill', |
|
| 18 | + 'type' => 'script', |
|
| 19 | + 'path' => 'vendor/babel-polyfill.js' |
|
| 20 | 20 | ], |
| 21 | 21 | [ |
| 22 | - 'name' => 'document-register-element', |
|
| 23 | - 'type' => 'script', |
|
| 24 | - 'path' => 'vendor/document-register-element.js' |
|
| 22 | + 'name' => 'document-register-element', |
|
| 23 | + 'type' => 'script', |
|
| 24 | + 'path' => 'vendor/document-register-element.js' |
|
| 25 | 25 | ], |
| 26 | 26 | [ |
| 27 | - 'name' => 'normalize', |
|
| 28 | - 'path' => 'vendor/normalize.css', |
|
| 29 | - 'type' => 'style' |
|
| 27 | + 'name' => 'normalize', |
|
| 28 | + 'path' => 'vendor/normalize.css', |
|
| 29 | + 'type' => 'style' |
|
| 30 | 30 | ] |
| 31 | 31 | ]); |
| 32 | 32 | |