Title: [198825] trunk/Websites/webkit.org/wp-content
Revision
198825
Author
j...@apple.com
Date
2016-03-29 20:34:15 -0700 (Tue, 29 Mar 2016)

Log Message

Unreviewed fixes for search errors on WebKit Nightly Archives page; fixed date display on WebKit Nightly page
https://bugs.webkit.org/show_bug.cgi?id=155989

* wp-content/plugins/sync-nightly-builds.php:
* wp-content/themes/webkit/nightly.php:
* wp-content/themes/webkit/scripts/searchbuilds.js:
(initsearch.displayError):

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/wp-content/plugins/sync-nightly-builds.php (198824 => 198825)


--- trunk/Websites/webkit.org/wp-content/plugins/sync-nightly-builds.php	2016-03-30 03:16:29 UTC (rev 198824)
+++ trunk/Websites/webkit.org/wp-content/plugins/sync-nightly-builds.php	2016-03-30 03:34:15 UTC (rev 198825)
@@ -34,6 +34,7 @@
         $this->uploads_dir = trailingslashit($upload_dir_info['basedir']);
 
         add_action('update_webkit_nightly_builds', array($this, 'sync'));
+        add_action('wp_ajax_nopriv_search_nightly_builds', array($this, 'search'));
         add_action('wp_ajax_search_nightly_builds', array($this, 'search'));
 
         register_activation_hook(__FILE__, function () {

Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/nightly.php (198824 => 198825)


--- trunk/Websites/webkit.org/wp-content/themes/webkit/nightly.php	2016-03-30 03:16:29 UTC (rev 198824)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/nightly.php	2016-03-30 03:34:15 UTC (rev 198825)
@@ -4,22 +4,15 @@
  **/
 
 add_filter('the_content', function ($content) {
-        
+
     $build = get_nightly_build();
     $source = get_nightly_source();
-    
-    $content = sprintf($content, 
-                        
-        $build[0], 
-        date(get_option( 'date_format' ), $build[1]),
-        $build[2],
-    
-        $source[0],
-        date(get_option( 'date_format' ), $source[1]),
-        $source[2]
-                            
+
+    $content = sprintf($content,
+        $build[0], $build[1], $build[2],
+        $source[0], $source[1], $source[2]
     );
-    
+
     return $content;
 });
 
@@ -80,6 +73,8 @@
 #nightly a.download {
     color: #ffffff;
     font-size: 3rem;
+    background: none;
+    padding-right: 0;
 }
 
 .page-template-nightly hr {
@@ -91,17 +86,17 @@
 }
 </style>
 
-	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 
         <article class="page" id="nightly">
-			<h1><a href="" echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
-            
-			<div class="bodycopy">
-				<?php the_content(''); ?>
-			</div>
-            
+            <h1><a href="" echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
+
+            <div class="bodycopy">
+                <?php the_content(''); ?>
+            </div>
+
         </article>
 
-	<?php endwhile; endif; ?>
+    <?php endwhile; endif; ?>
 
 <?php get_footer(); ?>
\ No newline at end of file

Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/scripts/searchbuilds.js (198824 => 198825)


--- trunk/Websites/webkit.org/wp-content/themes/webkit/scripts/searchbuilds.js	2016-03-30 03:16:29 UTC (rev 198824)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/scripts/searchbuilds.js	2016-03-30 03:34:15 UTC (rev 198825)
@@ -85,7 +85,7 @@
         function displayError(message) {
             var note = document.createElement('div');
 
-            if ( message === undefined ) 
+            if ( typeof message !== 'string' ) 
                 message = 'A communication error occured preventing any results from being returned by the server.';
 
             note.classList.add('note');
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to