Skip to content

Commit

Permalink
remove xml_rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
IORoot committed Oct 27, 2021
1 parent 7c92f44 commit bd57395
Show file tree
Hide file tree
Showing 7 changed files with 680 additions and 5 deletions.
15 changes: 15 additions & 0 deletions src/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Building style.css

This project uses laravel-mix to compile things.

## Build style.css with everything

```
npm run dev
```

## Build for production

```
npm run prod
```
2 changes: 1 addition & 1 deletion src/assets/css/style.css

Large diffs are not rendered by default.

651 changes: 650 additions & 1 deletion src/assets/js/all_js.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "npm run development",
"development": "mix",
"prod": "npm run production",
"production": "mix --production"
},
"keywords": [],
"author": "",
Expand Down
3 changes: 3 additions & 0 deletions src/hooks/disable_xmlrpc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

add_filter('xmlrpc_enabled', '__return_false');
7 changes: 6 additions & 1 deletion src/hooks/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@
* Disable SSL Verify for CURL
* This is so the REST to parkourpulse and parkourlabs work.
*/
require get_template_directory() . '/src/hooks/disable_curl_ssl_verify.php';
require get_template_directory() . '/src/hooks/disable_curl_ssl_verify.php';

/**
* Disable XML-RPC
*/
require get_template_directory() . '/src/hooks/disable_xmlrpc.php';
1 change: 0 additions & 1 deletion src/hooks/remove_html_extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// └──────────────────────────────────────┘░
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
remove_action ('wp_head', 'rsd_link');
add_filter('xmlrpc_enabled', '__return_false');


// ┌──────────────────────────────────────┐
Expand Down

0 comments on commit bd57395

Please sign in to comment.