Add react pages and assets, blocks, and admin page registration#3
Conversation
| } | ||
|
|
||
| return $form_fields; | ||
| }, 10, 2); |
There was a problem hiding this comment.
🚫 Error: Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine).
| */ | ||
| public function load_post_types() { | ||
|
|
||
| // Load all post types. |
There was a problem hiding this comment.
🚫 Error: There must be no blank line following an inline comment (Squiz.Commenting.InlineComment.SpacingAfterAtFunctionEnd).
|
|
||
| // Load all post types. | ||
|
|
||
| } |
There was a problem hiding this comment.
🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).
| */ | ||
| public function load_taxonomies() { | ||
|
|
||
| // Load all taxonomies classes. |
There was a problem hiding this comment.
🚫 Error: There must be no blank line following an inline comment (Squiz.Commenting.InlineComment.SpacingAfterAtFunctionEnd).
|
|
||
| // Load all taxonomies classes. | ||
|
|
||
| } |
There was a problem hiding this comment.
🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).
| */ | ||
| public function load_plugin_configs() { | ||
|
|
||
| // Load all plugin configs. |
There was a problem hiding this comment.
🚫 Error: There must be no blank line following an inline comment (Squiz.Commenting.InlineComment.SpacingAfterAtFunctionEnd).
|
|
||
| // Load all plugin configs. | ||
|
|
||
| } |
There was a problem hiding this comment.
🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).
|
|
||
| } | ||
|
|
||
| } |
There was a problem hiding this comment.
🚫 Error: The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => 'e883c62807d6327fcf3c'); | |||
There was a problem hiding this comment.
🚫 Error: Missing file doc comment (Squiz.Commenting.FileComment.Missing).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => 'e883c62807d6327fcf3c'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space after the array opener in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine).
| if ( $screen && in_array( $screen->id, [ 'toplevel_page_easydam', 'easydam_page_video_editor' ] ) ) { | ||
| wp_register_style( | ||
| 'react-pages-features-page-style-easydam', | ||
| RT_TRANSCODER_URL . '/pages/build/style.css', |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_register_style( | ||
| 'react-pages-features-page-style-easydam', | ||
| RT_TRANSCODER_URL . '/pages/build/style.css', | ||
| [], |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_register_style( | ||
| 'react-pages-features-page-style-easydam', | ||
| RT_TRANSCODER_URL . '/pages/build/style.css', | ||
| [], |
There was a problem hiding this comment.
🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).
| 'react-pages-features-page-style-easydam', | ||
| RT_TRANSCODER_URL . '/pages/build/style.css', | ||
| [], | ||
| filemtime( RT_TRANSCODER_PATH . '/pages/build/style.css' ) |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| RT_TRANSCODER_URL . '/pages/build/style.css', | ||
| [], | ||
| filemtime( RT_TRANSCODER_PATH . '/pages/build/style.css' ) | ||
| ); |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| [], | ||
| filemtime( RT_TRANSCODER_PATH . '/pages/build/style.css' ) | ||
| ); | ||
|
|
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| filemtime( RT_TRANSCODER_PATH . '/pages/build/style.css' ) | ||
| ); | ||
|
|
||
| wp_enqueue_style( 'react-pages-features-page-style-easydam' ); |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| ); | ||
|
|
||
| wp_enqueue_style( 'react-pages-features-page-style-easydam' ); | ||
| } |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_enqueue_style( 'react-pages-features-page-style-easydam' ); | ||
| } | ||
|
|
||
| // Check if this is your custom admin page |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| } | ||
|
|
||
| // Check if this is your custom admin page | ||
| if ($screen && $screen->id === 'easydam_page_video_editor') { // Replace with your page slug |
There was a problem hiding this comment.
🚫 Error: No space after opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis).
| } | ||
|
|
||
| // Check if this is your custom admin page | ||
| if ($screen && $screen->id === 'easydam_page_video_editor') { // Replace with your page slug |
There was a problem hiding this comment.
🚫 Error: Use Yoda Condition checks, you must (WordPress.PHP.YodaConditions.NotYoda).
| } | ||
|
|
||
| // Check if this is your custom admin page | ||
| if ($screen && $screen->id === 'easydam_page_video_editor') { // Replace with your page slug |
There was a problem hiding this comment.
🚫 Error: No space before closing parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis).
| } | ||
|
|
||
| // Check if this is your custom admin page | ||
| if ($screen && $screen->id === 'easydam_page_video_editor') { // Replace with your page slug |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| wp_register_script( | ||
| 'react-pages-features-page-script-video-editor', | ||
| RT_TRANSCODER_URL . '/pages/build/video-editor.js', | ||
| [ 'wp-element' ], |
There was a problem hiding this comment.
🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).
| true | ||
| ); | ||
|
|
||
| // Pass dynamic data to React using wp_localize_script |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| wp_localize_script( | ||
| 'react-pages-features-page-script-video-editor', | ||
| 'videoData', | ||
| [ |
There was a problem hiding this comment.
🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).
| 'react-pages-features-page-script-video-editor', | ||
| 'videoData', | ||
| [ | ||
| 'nonce' => wp_create_nonce( 'wp_rest' ), // WordPress nonce for API requests |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| 'videoData', | ||
| [ | ||
| 'nonce' => wp_create_nonce( 'wp_rest' ), // WordPress nonce for API requests | ||
| 'currentUserId' => get_current_user_id(), // Current user ID |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| [ | ||
| 'nonce' => wp_create_nonce( 'wp_rest' ), // WordPress nonce for API requests | ||
| 'currentUserId' => get_current_user_id(), // Current user ID | ||
| 'currentUserRoles' => wp_get_current_user()->roles, // Current user roles |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-video-editor' ); | ||
|
|
||
| } else if ( $screen && $screen->id === 'toplevel_page_easydam' ) { |
There was a problem hiding this comment.
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-video-editor' ); | ||
|
|
||
| } else if ( $screen && $screen->id === 'toplevel_page_easydam' ) { |
There was a problem hiding this comment.
🚫 Error: Use Yoda Condition checks, you must (WordPress.PHP.YodaConditions.NotYoda).
| wp_register_script( | ||
| 'react-pages-features-page-script-easydam', | ||
| RT_TRANSCODER_URL . '/pages/build/easydam.js', | ||
| [ 'wp-element' ], |
There was a problem hiding this comment.
🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).
| ); | ||
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-easydam' ); | ||
| } else if ( $screen && $screen->id === 'easydam_page_components' ) { |
There was a problem hiding this comment.
| ); | ||
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-easydam' ); | ||
| } else if ( $screen && $screen->id === 'easydam_page_components' ) { |
There was a problem hiding this comment.
🚫 Error: Use Yoda Condition checks, you must (WordPress.PHP.YodaConditions.NotYoda).
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-easydam' ); | ||
| } else if ( $screen && $screen->id === 'easydam_page_components' ) { | ||
| wp_register_script( |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_enqueue_script( 'react-pages-features-page-script-easydam' ); | ||
| } else if ( $screen && $screen->id === 'easydam_page_components' ) { | ||
| wp_register_script( | ||
| 'react-pages-features-page-script-wp-components', |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| } else if ( $screen && $screen->id === 'easydam_page_components' ) { | ||
| wp_register_script( | ||
| 'react-pages-features-page-script-wp-components', | ||
| RT_TRANSCODER_URL . '/pages/build/wp-components.js', |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_register_script( | ||
| 'react-pages-features-page-script-wp-components', | ||
| RT_TRANSCODER_URL . '/pages/build/wp-components.js', | ||
| [ 'wp-element' ], |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_register_script( | ||
| 'react-pages-features-page-script-wp-components', | ||
| RT_TRANSCODER_URL . '/pages/build/wp-components.js', | ||
| [ 'wp-element' ], |
There was a problem hiding this comment.
🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).
| 'react-pages-features-page-script-wp-components', | ||
| RT_TRANSCODER_URL . '/pages/build/wp-components.js', | ||
| [ 'wp-element' ], | ||
| filemtime( RT_TRANSCODER_PATH . '/pages/build/wp-components.js' ), |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| RT_TRANSCODER_URL . '/pages/build/wp-components.js', | ||
| [ 'wp-element' ], | ||
| filemtime( RT_TRANSCODER_PATH . '/pages/build/wp-components.js' ), | ||
| true |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| [ 'wp-element' ], | ||
| filemtime( RT_TRANSCODER_PATH . '/pages/build/wp-components.js' ), | ||
| true | ||
| ); |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| true | ||
| ); | ||
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-wp-components' ); |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| ); | ||
|
|
||
| wp_enqueue_script( 'react-pages-features-page-script-wp-components' ); | ||
| } |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_enqueue_script( 'react-pages-features-page-script-wp-components' ); | ||
| } | ||
|
|
||
| } |
There was a problem hiding this comment.
🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).
|
|
||
| namespace Transcoder\Inc; | ||
|
|
||
| use \Transcoder\Inc\Traits\Singleton; |
There was a problem hiding this comment.
🚫 Error: An import use statement should never start with a leading backslash (Universal.UseStatements.NoLeadingBackslash.LeadingBackslashFound).
| namespace Transcoder\Inc; | ||
|
|
||
| use \Transcoder\Inc\Traits\Singleton; | ||
| use \Transcoder\Inc\Pages; |
There was a problem hiding this comment.
🚫 Error: An import use statement should never start with a leading backslash (Universal.UseStatements.NoLeadingBackslash.LeadingBackslashFound).
|
|
||
| use \Transcoder\Inc\Traits\Singleton; | ||
| use \Transcoder\Inc\Pages; | ||
| use \Transcoder\Inc\Blocks; |
There was a problem hiding this comment.
🚫 Error: An import use statement should never start with a leading backslash (Universal.UseStatements.NoLeadingBackslash.LeadingBackslashFound).
| use \Transcoder\Inc\Traits\Singleton; | ||
| use \Transcoder\Inc\Pages; | ||
| use \Transcoder\Inc\Blocks; | ||
| use \Transcoder\Inc\Assets; |
There was a problem hiding this comment.
🚫 Error: An import use statement should never start with a leading backslash (Universal.UseStatements.NoLeadingBackslash.LeadingBackslashFound).
| Pages::get_instance(); | ||
|
|
||
|
|
||
| // Add a custom "Edit Video" button for video files in the Media Library |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
|
|
||
|
|
||
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { |
There was a problem hiding this comment.
🚫 Error: Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).
|
|
||
|
|
||
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { |
There was a problem hiding this comment.
🚫 Error: Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments).
|
|
||
|
|
||
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen).
|
|
||
|
|
||
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose).
|
|
||
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).
| // Add a custom "Edit Video" button for video files in the Media Library | ||
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { |
There was a problem hiding this comment.
🚫 Error: No space after opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis).
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).
| add_filter('attachment_fields_to_edit', function ($form_fields, $post) { | ||
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { |
There was a problem hiding this comment.
🚫 Error: No space before closing parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis).
| // Check if the file is a video | ||
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { | ||
| // Generate the edit video link (adjust URL as needed) |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { | ||
| // Generate the edit video link (adjust URL as needed) | ||
| $edit_url = admin_url('admin.php?page=video_editor&id=' . $post->ID); |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).
| $mime_type = get_post_mime_type($post->ID); | ||
| if (strpos($mime_type, 'video/') !== false) { | ||
| // Generate the edit video link (adjust URL as needed) | ||
| $edit_url = admin_url('admin.php?page=video_editor&id=' . $post->ID); |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).
| // Generate the edit video link (adjust URL as needed) | ||
| $edit_url = admin_url('admin.php?page=video_editor&id=' . $post->ID); | ||
|
|
||
| // Add a new field for the Edit Video button |
There was a problem hiding this comment.
🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).
| $edit_url = admin_url('admin.php?page=video_editor&id=' . $post->ID); | ||
|
|
||
| // Add a new field for the Edit Video button | ||
| $form_fields['edit_video'] = [ |
There was a problem hiding this comment.
🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).
| $form_fields['edit_video'] = [ | ||
| 'label' => '', | ||
| 'input' => 'html', | ||
| 'html' => '<a href="' . esc_url($edit_url) . '" class="button button-primary" target="_blank">Edit Video</a>', |
There was a problem hiding this comment.
🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).
| } | ||
|
|
||
| return $form_fields; | ||
| }, 10, 2); |
There was a problem hiding this comment.
🚫 Error: Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments).
| public function add_admin_pages() { | ||
| add_menu_page( | ||
| __( 'EasyDAM', 'transcoder' ), | ||
| __( 'EasyDAM', 'transcoder' ), |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
|
|
||
| add_submenu_page( | ||
| 'easydam', | ||
| __( 'Video editor', 'transcoder' ), |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| add_submenu_page( | ||
| 'easydam', | ||
| __( 'Video editor', 'transcoder' ), | ||
| __( 'Video editor', 'transcoder' ), |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
|
|
||
| if ( $screen && in_array( $screen->id, [ 'toplevel_page_easydam', 'easydam_page_video_editor' ] ) ) { | ||
| wp_register_style( | ||
| 'transcoder-page-style-easydam', |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| filemtime( RT_TRANSCODER_PATH . '/pages/build/style.css' ) | ||
| ); | ||
|
|
||
| wp_enqueue_style( 'transcoder-page-style-easydam' ); |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| wp_enqueue_script( 'transcoder-page-script-easydam' ); | ||
| } else if ( $screen && $screen->id === 'easydam_page_components' ) { | ||
| wp_register_script( | ||
| 'transcoder-page-script-wp-components', |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
| true | ||
| ); | ||
|
|
||
| wp_enqueue_script( 'transcoder-page-script-wp-components' ); |
There was a problem hiding this comment.
🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).
|
GitHub API communication error. Please contact a human. (commit-ID: 9332ec7). |
Dismissing review as all inline comments are obsolete by now
Dismissing review as all inline comments are obsolete by now
- Add permissions block to phpcs_on_pull_request.yml (contents: read, pull-requests: write) - Add permissions block to release_on_tag.yml (contents: write) - Add permissions block to deploy_on_push.yml (contents: read) This follows the principle of least privilege and resolves GitHub code scanning alerts #1, #2, and #3. Fixes: rtCamp/support#245
pagesdirectory to add individual React roots and bundle the files.EasyDAMandVideo Editoradmin pages.TailwindCSS.