Skip to content

Commit

Permalink
Merge pull request #58 from BlairCooper/missing_repr_log
Browse files Browse the repository at this point in the history
Fix namespace references for repr_log()
  • Loading branch information
rockiger committed Jun 4, 2024
2 parents 3a3baf0 + 910465e commit 50d1ed5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions admin/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
use LengthException;
use ReactPress\Admin\Utils;

use function \repr_log;

class Controller {

// # Controller functions
Expand Down
8 changes: 4 additions & 4 deletions public/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

use ReactPress\Admin\Utils;

use function ReactPress\Admin\repr_log;
use function \repr_log;

class User {

Expand Down Expand Up @@ -94,7 +94,7 @@ public function enqueue_scripts() {
}

/**
* Add the type="module" attribute to the script tag, for
* Add the type="module" attribute to the script tag, for
* ReactPress apps, to remove some errors with Vite.
*/
function add_type_module_to_scripts($tag, $handle, $src) {
Expand Down Expand Up @@ -149,7 +149,7 @@ public function repr_change_page_template($template) {
/**
* Load react app files im page should contain a react app.
* (C) Ben Broide https://medium.com/swlh/wordpress-create-react-app-integration-30b41657b79e
*
*
* @return bool|void
* @since 1.0.0
*/
Expand Down Expand Up @@ -282,7 +282,7 @@ function ($severity, $message, $file, $line) {

/**
* Add new rewrite rules for every app to make react router usable.
*
*
* @since 1.4.0
*/
public function add_repr_apps_rewrite_rules() {
Expand Down

0 comments on commit 50d1ed5

Please sign in to comment.