You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -226,7 +225,7 @@ public static function get_registered_settings() {
226
225
*
227
226
* @return array General settings array
228
227
*/
229
-
publicfunctionsettings_general() {
228
+
publicstaticfunctionsettings_general() {
230
229
$settings = array(
231
230
'list_general_header' => array(
232
231
'id' => 'list_general_header',
@@ -368,7 +367,7 @@ public function settings_general() {
368
367
*
369
368
* @return array Output settings array
370
369
*/
371
-
publicfunctionsettings_output() {
370
+
publicstaticfunctionsettings_output() {
372
371
$settings = array(
373
372
'title' => array(
374
373
'id' => 'title',
@@ -548,7 +547,7 @@ public function settings_output() {
548
547
*
549
548
* @return array List Tuning settings array
550
549
*/
551
-
publicfunctionsettings_list() {
550
+
publicstaticfunctionsettings_list() {
552
551
$settings = array(
553
552
'list_general_header' => array(
554
553
'id' => 'list_general_header',
@@ -570,7 +569,7 @@ public function settings_list() {
570
569
'desc' => esc_html__( 'Maximum number of posts that will be displayed in the list. This option is used if you do not specify the number of posts in the widget or shortcodes', 'contextual-related-posts' ),
571
570
'type' => 'number',
572
571
'default' => '6',
573
-
'min' => '0',
572
+
'min' => '1',
574
573
'size' => 'small',
575
574
),
576
575
'daily_range' => array(
@@ -864,7 +863,7 @@ public function settings_list() {
864
863
*
865
864
* @return array Thumbnail settings array
866
865
*/
867
-
publicfunctionsettings_thumbnail() {
866
+
publicstaticfunctionsettings_thumbnail() {
868
867
$settings = array(
869
868
'post_thumb_op' => array(
870
869
'id' => 'post_thumb_op',
@@ -981,7 +980,7 @@ public function settings_thumbnail() {
981
980
*
982
981
* @return array Styles settings array
983
982
*/
984
-
publicfunctionsettings_styles() {
983
+
publicstaticfunctionsettings_styles() {
985
984
$settings = array(
986
985
'crp_styles' => array(
987
986
'id' => 'crp_styles',
@@ -1019,7 +1018,7 @@ public function settings_styles() {
1019
1018
*
1020
1019
* @return array Feed settings array
1021
1020
*/
1022
-
publicfunctionsettings_feed() {
1021
+
publicstaticfunctionsettings_feed() {
1023
1022
$settings = array(
1024
1023
'feed_options_desc' => array(
1025
1024
'id' => 'feed_options_desc',
@@ -1093,7 +1092,7 @@ public function settings_feed() {
1093
1092
*
1094
1093
* @return array WooCommerce settings array
1095
1094
*/
1096
-
publicfunctionsettings_woocommerce() {
1095
+
publicstaticfunctionsettings_woocommerce() {
1097
1096
$settings = array(
1098
1097
'wc_header' => array(
1099
1098
'id' => 'wc_header',
@@ -1280,7 +1279,7 @@ public function settings_woocommerce() {
1280
1279
*
1281
1280
* @return array Performance settings array
1282
1281
*/
1283
-
publicfunctionsettings_performance() {
1282
+
publicstaticfunctionsettings_performance() {
1284
1283
$custom_tables_desc = sprintf(
1285
1284
/* translators: 1: Opening a tag, 2: Closing a tag */
1286
1285
esc_html__( 'Efficient Content Storage and Indexing (ECSI) creates a dedicated database table optimized for related content queries. This enhances performance, particularly on sites with a large number of posts or high traffic. To create the ECSI tables, visit the %1$sTools tab%2$s.', 'contextual-related-posts' ),
@@ -1644,6 +1643,11 @@ public function change_settings_on_save( $settings ) {
0 commit comments