Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
### Added
- Detailed inline comments and links to WordPress documentation in the `aegis_theme_support()`, `aegis_theme_styles()`, `aegis_register_block_categories()`, `aegis_register_block_styles()`, and `aegis_enqueue_block_styles()` functions to improve code readability and maintainability.
- Documentation for each section in `aegis_register_block_styles()` and `aegis_enqueue_block_styles()` to specify the purpose and usage of each style registration and enqueue action.

### Changed
- Renamed several comment headings to follow a consistent pattern ("Registers:" and "Enqueues:") across all `register_block_style()` and `wp_enqueue_block_style()` functions.
- Removed duplicate code that registered or enqueued the same styles multiple times.
- Updated the `aegis_register_block_styles()` function to provide more detailed descriptions and links to WordPress documentation.
- Reformatted the `aegis_enqueue_block_styles()` function to include a structured and more readable block of comments for each group of styles being enqueued.

### Removed
- Removed duplicate enqueue of 'Reveal Hover' style in `aegis_enqueue_block_styles()` for `core/image` block.
- Removed the registration of some custom block styles that were duplicated or redundant.

### Fixed
- Corrected the description for some functions to align better with WordPress coding standards.
- Fixed inconsistent use of array syntax in function parameters.

Co-Authored-By: Alex de Borba <mail@alexdeborba.com>
  • Loading branch information
atmostfear-entertainment and alexdeborba committed Sep 1, 2024
1 parent 8d468c5 commit c252198
Showing 1 changed file with 272 additions and 119 deletions.
Loading

0 comments on commit c252198

Please sign in to comment.