Make WordPress Core

Ticket #44450: 44450-2.diff

File 44450-2.diff, 4.1 KB (added by subrataemfluence, 6 years ago)

Please ignore the last one. Wrong patch uploaded by mistake. Uploading modified patch.

Line 
1diff --git src/wp-includes/widgets/class-wp-nav-menu-widget.php bclass-wp-nav-menu-widget.php
2index db6f48c..8954312 100755
3--- src/wp-includes/widgets/class-wp-nav-menu-widget.php bclass-wp-nav-menu-widget.php
4+++ b/class-wp-nav-menu-widget.php
5@@ -111,8 +111,6 @@ class WP_Nav_Menu_Widget extends WP_Widget {
6         *
7         * @param array $instance Current settings.
8         * @global WP_Customize_Manager $wp_customize
9+        *
10+        * @return void
11         */
12        public function form( $instance ) {
13                global $wp_customize;
14
15diff --git src/wp-includes/widgets/class-wp-widget-archives.php b/class-wp-widget-archives.php
16index 56f4565..a066fb8 100755
17--- src/wp-includes/widgets/class-wp-widget-archives.php
18+++ b/class-wp-widget-archives.php
19@@ -164,6 +164,8 @@ class WP_Widget_Archives extends WP_Widget {
20         * @since 2.8.0
21         *
22         * @param array $instance Current settings.
23+        *
24+        * @return void
25         */
26        public function form( $instance ) {
27                $instance = wp_parse_args(
28
29diff --git src/wp-includes/widgets/class-wp-widget-calendar.php b/class-wp-widget-calendar.php
30index 08de077..5723c48 100755
31--- src/wp-includes/widgets/class-wp-widget-calendar.php
32+++ b/class-wp-widget-calendar.php
33@@ -91,6 +91,8 @@ class WP_Widget_Calendar extends WP_Widget {
34         * @since 2.8.0
35         *
36         * @param array $instance Current settings.
37+        *
38+        * @return void
39         */
40        public function form( $instance ) {
41                $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
42
43diff --git src/wp-includes/widgets/class-wp-widget-categories.php b/class-wp-widget-categories.php
44index 13be342..1048188 100755
45--- src/wp-includes/widgets/class-wp-widget-categories.php
46+++ b/class-wp-widget-categories.php
47@@ -156,6 +156,8 @@ class WP_Widget_Categories extends WP_Widget {
48         * @since 2.8.0
49         *
50         * @param array $instance Current settings.
51+        *
52+        * @return void
53         */
54        public function form( $instance ) {
55                //Defaults
56
57diff --git src/wp-includes/widgets/class-wp-widget-links.php b/widgets/class-wp-widget-links.php
58index 344bdc5..bb808d7 100755
59--- src/wp-includes/widgets/class-wp-widget-links.php
60+++ b/class-wp-widget-links.php
61@@ -121,6 +121,8 @@ class WP_Widget_Links extends WP_Widget {
62         * @since 2.8.0
63         *
64         * @param array $instance Current settings.
65+        *
66+        * @return void
67         */
68        public function form( $instance ) {
69 
70diff --git src/wp-includes/widgets/class-wp-widget-meta.php b/class-wp-widget-meta.php
71index 2df1f70..acc53be 100755
72--- src/wp-includes/widgets/class-wp-widget-meta.php
73+++ b/class-wp-widget-meta.php
74@@ -108,6 +108,8 @@ class WP_Widget_Meta extends WP_Widget {
75         * @since 2.8.0
76         *
77         * @param array $instance Current settings.
78+        *
79+        * @return void
80         */
81        public function form( $instance ) {
82                $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
83
84diff --git src/wp-includes/widgets/class-wp-widget-pages.php b/class-wp-widget-pages.php
85index 025a003..73e22c7 100755
86--- src/wp-includes/widgets/class-wp-widget-pages.php
87+++ b/class-wp-widget-pages.php
88@@ -126,6 +126,8 @@ class WP_Widget_Pages extends WP_Widget {
89         * @since 2.8.0
90         *
91         * @param array $instance Current settings.
92+        *
93+        * @return void
94         */
95        public function form( $instance ) {
96                //Defaults
97
98diff --git src/wp-includes/widgets/class-wp-widget-recent-comments.php b/class-wp-widget-recent-comments.php
99index c7b0c26..8563d56 100755
100--- src/wp-includes/widgets/class-wp-widget-recent-comments.php
101+++ b/class-wp-widget-recent-comments.php
102@@ -156,6 +156,8 @@ class WP_Widget_Recent_Comments extends WP_Widget {
103         * @since 2.8.0
104         *
105         * @param array $instance Current settings.
106+        *
107+        * @return void
108         */
109        public function form( $instance ) {
110                $title  = isset( $instance['title'] ) ? $instance['title'] : '';
111
112diff --git src/wp-includes/widgets/class-wp-widget-recent-posts.php b/class-wp-widget-recent-posts.php
113index fa0f56a..59f899f 100644
114--- src/wp-includes/widgets/class-wp-widget-recent-posts.php
115+++ b/class-wp-widget-recent-posts.php
116@@ -130,6 +130,8 @@ class WP_Widget_Recent_Posts extends WP_Widget {
117         * @since 2.8.0
118         *
119         * @param array $instance Current settings.
120+        *
121+        * @return void
122         */
123        public function form( $instance ) {
124                $title     = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';