Skip to content

Commit e8a3893

Browse files
authored
Merge pull request #447 from linchpin/issue/ISSUES-446-deprecation-notice
fix(ISSUES-446): Avoid triggering deprecation notice
2 parents 4d091d8 + a6a537d commit e8a3893

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

includes/Core/Bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ private function load_controllers() {
112112
*/
113113
private function register_actions() {
114114
foreach ( $this->controllers as $name => $class ) {
115+
116+
// The Cron::register_actions method is deprecated. Avoid calling it.
117+
if ( 'Cron' === $name ) {
118+
continue;
119+
}
120+
115121
if ( method_exists( $class, 'register_actions' ) ) {
116122
$class->register_actions();
117123
}

0 commit comments

Comments
 (0)