Skip to content
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

news shortcodes moved to plugin #5066

Closed
wants to merge 3 commits into from
Closed

news shortcodes moved to plugin #5066

wants to merge 3 commits into from

Conversation

Jimmi08
Copy link
Contributor

@Jimmi08 Jimmi08 commented Aug 27, 2023

Motivation and Context

](https://github.com//issues/5065)

Description

just moved the shortcode file and changed way how they are called

How Has This Been Tested?

Real example

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • [ x] New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • [x ] Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist

@CaMer0n
Copy link
Member

CaMer0n commented Sep 12, 2023

@Jimmi08 I understand the motivation, but this is a breaking change. Every theme or plugin in existence which either calls the shortcodes via e107::getScBatch(), or loads them the old way with a require_once(e_CORE."shortcodes/batch/news_shortcodes.php"); would cease to function correctly. So, at the very least, a placeholder file would need to be left at e_CORE."shortcodes/batch/news_shortcodes.php.

@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Sep 13, 2023

In public static function getScBatch($className, $pluginName = null, $overrideClass = null)

/* legacy fix */ 
if($className == "news") $pluginName = true;

and add debug warning about using outdated code.

Nevermind, you can close this. I finished separating news from the core (including URLs) so I am too forward to need this anymore.

@CaMer0n CaMer0n closed this Sep 18, 2023
@Jimmi08 Jimmi08 deleted the news-shortcodes branch December 2, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants