Skip to content

Commit

Permalink
wpcom_restapi_copy_theme_plugin_actions: Fix PHP 8.1 fatals related t…
Browse files Browse the repository at this point in the history
…o static calls on non-static (#35383)

* wpcom_restapi_copy_theme_plugin_actions: Fix PHP 8.1 fatals related to static calls on non-static

* changelog
  • Loading branch information
mreishus authored Feb 1, 2024
1 parent 4c572a2 commit 7388cc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

wpcom_restapi_copy_theme_plugin_actions: Fix PHP 8.1 fatals related to static calls on non-static
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function callback( $path = '', $blog_id = 0 ) {
*
* @param array $copy_dirs Array of files to be included in theme context.
*/
public function wpcom_restapi_copy_theme_plugin_actions( $copy_dirs ) {
public static function wpcom_restapi_copy_theme_plugin_actions( $copy_dirs ) {
$theme_name = get_stylesheet();
$default_file_name = WP_CONTENT_DIR . "/mu-plugins/infinity/themes/{$theme_name}.php";

Expand Down

0 comments on commit 7388cc8

Please sign in to comment.