Skip to content

Commit 79e8008

Browse files
committed
fixup! set banner via env var
1 parent d62cca6 commit 79e8008

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

themes/api.jquery.com/index.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
<?php
2-
// Set banner in post meta for the header to display it
3-
update_post_meta(
4-
get_the_ID(),
5-
'banner',
6-
'jQuery 4.0 is currently in beta. Once released, jQuery 3.x will only receive critical updates. Learn more about our <a href="https://jquery.com/support/">Version Support</a>.'
7-
);
8-
get_header();
9-
?>
1+
<?php get_header(); ?>
102

113
<div class="content-right listing twelve columns">
124
<div id="content">

themes/jquery/header.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@
3939
</head>
4040
<body <?php body_class(); ?>>
4141

42-
<!-- Render the banner if there's a banner message in post_meta -->
43-
<?php if ( get_post_meta( $post->ID, "banner" ) ) : ?>
42+
<?php if ( defined( "JQUERY_BANNER" ) ) : ?>
4443
<div id="banner">
45-
<?php echo get_post_meta( $post->ID, "banner", true ); ?>
44+
<?php echo JQUERY_BANNER ?>
4645
</div>
4746
<?php endif; ?>
4847

0 commit comments

Comments
 (0)