File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ vendor /
2
+ composer.lock
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/*
3
3
* Plugin Name: Custom 404 page
4
- * Version: 0.1.1
4
+ * Version: 1.0.0
5
5
* Description: A plugin to set a custom page as 404 for Clarkson
6
6
* Author: Level Level
7
7
* Author URI: http://www.level-level.com
18
18
19
19
namespace Clarkson ;
20
20
21
+ use Clarkson_Core \Objects ;
22
+
21
23
class FourOFour {
22
24
23
25
protected function __construct () {
@@ -42,7 +44,7 @@ public function add_404_object( $objects ){
42
44
global $ post ;
43
45
$ post = $ id ;
44
46
45
- $ object_loader = \Clarkson_Core_Objects ::get_instance ();
47
+ $ object_loader = Objects ::get_instance ();
46
48
47
49
$ page = $ object_loader ->get_object ( $ id );
48
50
Original file line number Diff line number Diff line change 6
6
"name" : " Level Level" ,
7
7
"homepage" : " https://level-level.com"
8
8
}
9
- ]
9
+ ],
10
+ "require" : {
11
+ "level-level/clarkson-core" : " 1.0.0-rc3"
12
+ }
10
13
}
You can’t perform that action at this time.
0 commit comments