Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

added admin notice and check compatibility with latest WP6.8.1

Open Akhill2020 opened this issue 8 months ago • 1 comments

Description: Added an admin notice to upgrade to PHP 8.x and check compatibility with the latest WP. After: https://www.screenpresso.com/=0U7Wwg2Xiil2

Summary by CodeRabbit

  • New Features
    • Added an admin notice prompting users to upgrade PHP if their version is below 8.0, displaying the current PHP version.
  • Documentation
    • Updated documentation to reflect compatibility with WordPress 6.8.1 and included a changelog entry for version 3.5.2.

Akhill2020 avatar May 02 '25 06:05 Akhill2020

Walkthrough

The changes update the plugin's admin notice functionality to focus on PHP version requirements rather than checking for outdated add-ons. The function previously responsible for notifying about Pro and FullCalendar add-on updates has been renamed and repurposed to display a notice if the server's PHP version is below 8.0. Related logic for add-on version checks and options management was removed. Additionally, the plugin's readme was updated to reflect compatibility with WordPress 6.8.1 and to document the new PHP version notice in the changelog.

Changes

File(s) Change Summary
includes/functions/admin.php Renamed and repurposed the admin notice function to check for PHP version < 8.0; removed add-on version check logic; updated admin hook.
readme.txt Updated "Tested up to" WordPress version to 6.8.1; added changelog entry for v3.5.2 noting compatibility and new PHP notice.

Suggested reviewers

  • rosinghal

Poem

🐇
A hop and a skip through the admin den,
Out with old checks, in with PHP again!
If your version is low, a notice will show,
"Upgrade to eight-oh, let your site glow!"
WordPress is fresher, the changelog’s in sight—
The calendar’s ready, and all is right!
🕒✨


📜 Recent review details

Configuration used: CodeRabbit UI Review profile: CHILL Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0d5c25556947d06746fa7b853f31e6f3954c18fc and 15a1fae8e3de29f9380bda761d9e7036a37a3ba2.

📒 Files selected for processing (1)
  • includes/functions/admin.php (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • includes/functions/admin.php
✨ Finishing Touches
  • [ ] 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

coderabbitai[bot] avatar May 02 '25 06:05 coderabbitai[bot]

FYI My current PHP version is 8.3.20 and I'm getting this warning.

Dr-Mx avatar May 13 '25 13:05 Dr-Mx

@Dr-Mx thanks for letting us know, we are looking into this. @Akhill2020 @gacharijohn FYI

rosinghal avatar May 14 '25 06:05 rosinghal

@Dr-Mx fixed in https://github.com/Xtendify/Simple-Calendar/pull/615

rosinghal avatar May 14 '25 10:05 rosinghal