Skip to content

Commit d2f31c5

Browse files
committed
moved core php code to new helper plugin https://github.com/jonshipman/wp-react-gql
1 parent 6eab70c commit d2f31c5

File tree

8 files changed

+3
-385
lines changed

8 files changed

+3
-385
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
This repo shows the process in how https://github.com/jonshipman/react-wp-gql works as well as provides a base for how to get Create-React-App into a standard WordPress theme.
44

5-
All WordPress integration is done inside the ./public folder and involves outputting the index.html with str_replace for the static uris. Adds a __WP window global variables for use inside the theme. During ``yarn start`` development, add these urls to ./src/config.js to develop without needing to build on each change.
5+
All WordPress integration is done inside the ./public folder and involves outputting the index.html with str_replace for the static uris. Adds a __WP window global variables for use inside the theme. During ``yarn start`` development, add these urls to ./src/config.js to develop without needing to build on each change.
6+
7+
Please also install https://github.com/jonshipman/wp-react-gql as core code has been moved there (in regards to login and logout mutations).

react/public/functions.php

-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,5 @@
66
* @since 1.0.0
77
*/
88

9-
// Core functions required for react to work.
10-
require_once __DIR__ . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'core.php';
11-
129
// Menus in use by theme.
1310
require_once __DIR__ . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'menus.php';
14-
15-
// Authentication URLs and url changes in the email.
16-
require_once __DIR__ . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'auth' . DIRECTORY_SEPARATOR . 'index.php';

react/public/includes/auth/index.php

-16
This file was deleted.

react/public/includes/auth/login.php

-113
This file was deleted.

react/public/includes/auth/logout.php

-42
This file was deleted.

react/public/includes/auth/routing.php

-89
This file was deleted.

0 commit comments

Comments
 (0)