Title: [265333] trunk/Websites/webkit.org
- Revision
- 265333
- Author
- j...@apple.com
- Date
- 2020-08-06 10:02:05 -0700 (Thu, 06 Aug 2020)
Log Message
Fixed widget method argument compatibility with WordPress
https://bugs.webkit.org/show_bug.cgi?id=215103
Reviewed by Devin Rousso.
* wp-content/themes/webkit/widgets/icon.php:
* wp-content/themes/webkit/widgets/page.php:
* wp-content/themes/webkit/widgets/post.php:
* wp-content/themes/webkit/widgets/twitter.php:
Modified Paths
Diff
Modified: trunk/Websites/webkit.org/ChangeLog (265332 => 265333)
--- trunk/Websites/webkit.org/ChangeLog 2020-08-06 16:58:58 UTC (rev 265332)
+++ trunk/Websites/webkit.org/ChangeLog 2020-08-06 17:02:05 UTC (rev 265333)
@@ -1,5 +1,17 @@
2020-08-06 Jon Davis <j...@apple.com>
+ Fixed widget method argument compatibility with WordPress
+ https://bugs.webkit.org/show_bug.cgi?id=215103
+
+ Reviewed by Devin Rousso.
+
+ * wp-content/themes/webkit/widgets/icon.php:
+ * wp-content/themes/webkit/widgets/page.php:
+ * wp-content/themes/webkit/widgets/post.php:
+ * wp-content/themes/webkit/widgets/twitter.php:
+
+2020-08-06 Jon Davis <j...@apple.com>
+
Removed XML declaration from SVGs and updated copyrights
https://bugs.webkit.org/show_bug.cgi?id=215102
Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/icon.php (265332 => 265333)
--- trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/icon.php 2020-08-06 16:58:58 UTC (rev 265332)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/icon.php 2020-08-06 17:02:05 UTC (rev 265333)
@@ -17,7 +17,7 @@
);
}
- function widget( array $args, array $options ) {
+ function widget($args, $options) {
if ( ! empty($args) )
extract($args, EXTR_SKIP);
@@ -38,7 +38,7 @@
<?php
}
- function form( array $options ) {
+ function form($options) {
?>
<p><label for="" echo $this->get_field_id('color'); ?>"><?php _e('Color'); ?></label>
<select name="<?php echo $this->get_field_name('color'); ?>">
Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/page.php (265332 => 265333)
--- trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/page.php 2020-08-06 16:58:58 UTC (rev 265332)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/page.php 2020-08-06 17:02:05 UTC (rev 265333)
@@ -17,7 +17,7 @@
);
}
- public function load( array $options = array() ) {
+ public function load($options = array()) {
return new WP_Query(array(
'post_type' => 'page',
'page_id' => $options['page']
@@ -24,7 +24,7 @@
));
}
- function form( array $options ) {
+ function form($options) {
if ( empty( $options['link'] ) ) $options['link'] = __('Read more');
?>
<p><label for="" echo $this->get_field_id('page'); ?>"><?php _e( 'Page' ); ?></label>
Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/post.php (265332 => 265333)
--- trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/post.php 2020-08-06 16:58:58 UTC (rev 265332)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/post.php 2020-08-06 17:02:05 UTC (rev 265333)
@@ -21,7 +21,7 @@
return Front_Page_Posts::WP_Query();
}
- public function widget( array $args, array $options ) {
+ public function widget($args, $options) {
$Query = $this->load($options);
// Get the next post, if available
@@ -82,7 +82,7 @@
<?php
}
- public function form( array $options ) {
+ public function form($options) {
if ( empty( $options['link'] ) ) $options['link'] = __('Read more');
?>
<p><label for="" echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?></label>
Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/twitter.php (265332 => 265333)
--- trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/twitter.php 2020-08-06 16:58:58 UTC (rev 265332)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/widgets/twitter.php 2020-08-06 17:02:05 UTC (rev 265333)
@@ -20,7 +20,7 @@
);
}
- function widget( array $args, array $options ) {
+ function widget($args, $options) {
if ( ! empty($args) )
extract($args, EXTR_SKIP);
@@ -101,7 +101,7 @@
<?php
}
- function form( array $options ) {
+ function form($options) {
?>
<p><label for="" echo $this->get_field_id('text'); ?>"><?php _e('Text'); ?></label>
<textarea type="text" name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat"><?php echo $options['text']; ?></textarea></p>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes