-
Notifications
You must be signed in to change notification settings - Fork 3
Update theme for modern WordPress and PHP compatibility #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,5 +16,6 @@ | |
| <body <?php body_class(); ?>> | ||
| <?php wp_body_open(); ?> | ||
|
|
||
| <?php wp_footer(); ?> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,12 @@ Theme URI: https://github.com/GrowthWizard/blank-wordpress-theme | |
| Author: Dominik Stein | ||
| Author URI: https://steindominik.de/ | ||
| Description: A WordPress Theme which doesn't show any content in the frontend and is completely blank. Since the Backend (exampledomain.de/wp-content) is still available, you can use this WordPress Theme as headless CMS for any Javascript Framework you like (i.e. via RestAPI). Enjoy! | ||
| Version: 1.0.0 | ||
| Version: 1.1.0 | ||
| License: GNU General Public License v3 or later | ||
| License URI: https://www.gnu.org/licenses/gpl-3.0.html | ||
| Tags: featured-images, theme-options, | ||
| Text Domain: blank-wordpress-theme | ||
| Requires at least: 4.6 | ||
| Tested up to: 6.3 | ||
| Requires PHP: 5.6 | ||
| Requires at least: 4.7 | ||
| Tested up to: 6.7 | ||
| Requires PHP: 7.4 | ||
|
Comment on lines
+12
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: The wp_body_open function was introduced in WordPress version 5.2.0. Citations:
🏁 Script executed: # Check repository structure and find relevant files
find . -type f -name "*.php" -o -name "style.css" | head -20Repository: GrowthWizard/blank-wordpress-theme Length of output: 117 🏁 Script executed: # Look for index.php and check if wp_body_open is used
rg "wp_body_open" --type phpRepository: GrowthWizard/blank-wordpress-theme Length of output: 116 🏁 Script executed: # Find where version requirements are defined
rg "Requires at least|Requires PHP" --type php --type css -A 2 -B 2Repository: GrowthWizard/blank-wordpress-theme Length of output: 272 Erhöhe die WordPress-Mindestversion auf 5.2 oder füge einen Fallback für In Erhöhe die Mindestversion in if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}🤖 Prompt for AI Agents |
||
| */ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Füge einen Fallback für
wp_body_open()hinzu.Wie bereits bei
style.csserwähnt:wp_body_open()ist erst ab WordPress 5.2 verfügbar. Falls die Mindestversion bei 4.7 bleibt, sollte hier ein Fallback eingefügt werden.🛡️ Vorgeschlagene Änderung
🤖 Prompt for AI Agents