Skip to content

Commit f60859f

Browse files
committed
Installing empty placeholder for old search extension to fall WP's failure in removing it during updates, thus causing errors.
Signed-off-by: Kev Provance <[email protected]>
1 parent 26e4391 commit f60859f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/**
3+
* Placeholder file to fix WordPress's fuck up!
4+
* We removed this extension as it was no longer needed, but WordPress
5+
* didn't remove the old files with the 4.5.4 update and crashes enough
6+
* installs to make my life a living hell.
7+
* Now we have this empty construct so that stopped happening. Fucking stupid!
8+
*
9+
* @package Redux
10+
* @version Inactive Placeholder 4.5.5
11+
*/
12+
13+
defined( 'ABSPATH' ) || exit;
14+
15+
// Don't duplicate me!
16+
if ( ! class_exists( 'Redux_Extension_Search' ) ) {
17+
18+
/**
19+
* Class Redux_Extension_Search
20+
*/
21+
class Redux_Extension_Search extends Redux_Extension_Abstract {
22+
23+
/**
24+
* Extension Friendly Name.
25+
*
26+
* @var string
27+
*/
28+
public string $extension_name = 'Search (Inactive Placeholder)';
29+
30+
/**
31+
* Redux_Extension_Search constructor.
32+
*
33+
* @param object $redux ReduxFramework Object pointer.
34+
*/
35+
public function __construct( $redux ) {
36+
parent::__construct( $redux, __FILE__ );
37+
38+
// Nothing here.
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)