Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Check if 404 is from a private page
Browse files Browse the repository at this point in the history
  • Loading branch information
szk11001 committed Oct 12, 2015
1 parent bae258b commit b51d236
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
* @package cornerstone
*/
get_header(); ?>
<?php
$private = get_post_meta(get_queried_object()->ID, 'uc-private', true);
if($private == 'admins' || $private == 'users' || $private == 'list' || $private == 'netids'){
$private = true;
echo 'This is a private page';
}
?>
<div id="error404">
<div class="row">
<div class="col-sm-12">
Expand All @@ -24,7 +31,7 @@
</div>
<div class="col-sm-6">
<ul>
<?php
<?php
if (wp_get_nav_menu_object('404')){
$defaults = array(
'menu' => '404',
Expand Down

0 comments on commit b51d236

Please sign in to comment.