Skip to content

Commit

Permalink
Merge pull request #800 from publishpress/release-2.15.0
Browse files Browse the repository at this point in the history
Release 2.15.0
  • Loading branch information
richaferry authored Oct 21, 2024
2 parents 9892db8 + 30a8325 commit dcdbf85
Show file tree
Hide file tree
Showing 33 changed files with 3,220 additions and 2,806 deletions.
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions core/Legacy/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ public static function ppch_pro_sidebar()
</p>
<ul>
<li><?php echo esc_html__('Control height and width for featured images', 'publishpress-checklists'); ?></li>
<li><?php echo esc_html__('Control the number of images in posts', 'publishpress-checklists'); ?></li>
<li><?php echo esc_html__('Checklists for WooCommerce products', 'publishpress-checklists'); ?></li>
<li><?php echo esc_html__('Checklists for Advanced Custom Fields', 'publishpress-checklists'); ?></li>
<li><?php echo esc_html__('Checklists for Yoast SEO', 'publishpress-checklists'); ?></li>
<li><?php echo esc_html__('Remove PublishPress ads and branding', 'publishpress-checklists'); ?></li>
<li><?php echo esc_html__('Fast, professional support', 'publishpress-checklists'); ?></li>
</ul>
Expand Down
7 changes: 4 additions & 3 deletions core/Requirement/Featured_image.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @package PublishPress\Checklists
* @author PublishPress <[email protected]>
Expand Down Expand Up @@ -30,7 +31,7 @@ class Featured_image extends Base_simple
/**
* @var int
*/
public $position = 140;
public $position = 102;

/**
* Initialize the language strings for the instance
Expand All @@ -39,8 +40,8 @@ class Featured_image extends Base_simple
*/
public function init_language()
{
$this->lang['label'] = __('Featured image', 'publishpress-checklists');
$this->lang['label_settings'] = __('Featured image', 'publishpress-checklists');
$this->lang['label'] = __('Featured image is added', 'publishpress-checklists');
$this->lang['label_settings'] = __('Featured image is added', 'publishpress-checklists');
}

/**
Expand Down
9 changes: 5 additions & 4 deletions core/Requirement/Featured_image_alt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @package PublishPress\Checklists
* @author PublishPress <[email protected]>
Expand Down Expand Up @@ -30,7 +31,7 @@ class Featured_image_alt extends Base_simple
/**
* @var int
*/
public $position = 150;
public $position = 105;

/**
* Initialize the language strings for the instance
Expand All @@ -39,8 +40,8 @@ class Featured_image_alt extends Base_simple
*/
public function init_language()
{
$this->lang['label'] = __('Alt text for featured images', 'publishpress-checklists');
$this->lang['label_settings'] = __('Alt text for featured images', 'publishpress-checklists');
$this->lang['label'] = __('Featured image has Alt text', 'publishpress-checklists');
$this->lang['label_settings'] = __('Featured image has Alt text', 'publishpress-checklists');
}

/**
Expand All @@ -58,7 +59,7 @@ public function get_current_status($post, $option_value)
* check if new post
* new post will have no thumbnail in initialize page
*/
if($thumbnail_id === 0) return true;
if ($thumbnail_id === 0) return true;

$thumbnail_alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);

Expand Down
5 changes: 3 additions & 2 deletions core/Requirement/Image_alt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @package PublishPress\Checklists
* @author PublishPress <[email protected]>
Expand Down Expand Up @@ -40,8 +41,8 @@ class Image_alt extends Base_simple
*/
public function init_language()
{
$this->lang['label'] = __('Alt text for all images', 'publishpress-checklists');
$this->lang['label_settings'] = __('Alt text for all images', 'publishpress-checklists');
$this->lang['label'] = __('All images have Alt text', 'publishpress-checklists');
$this->lang['label_settings'] = __('All images have Alt text', 'publishpress-checklists');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion core/Requirement/Prohibited_categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Prohibited_categories extends Base_multiple
*
* @var int
*/
private $cache_expiration = 10 * MINUTE_IN_SECONDS;
private $cache_expiration = 1 * MINUTE_IN_SECONDS;

/**
* Flag to check if hooks have been initialized
Expand Down
2 changes: 1 addition & 1 deletion core/Requirement/Prohibited_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Prohibited_tags extends Base_multiple
*
* @var int
*/
private $cache_expiration = 10 * MINUTE_IN_SECONDS;
private $cache_expiration = 1 * MINUTE_IN_SECONDS;

/**
* Flag to track if hooks have been initialized
Expand Down
2 changes: 1 addition & 1 deletion core/Requirement/Required_categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Required_categories extends Base_multiple
*
* @var int
*/
private $cache_expiration = 10 * MINUTE_IN_SECONDS;
private $cache_expiration = 1 * MINUTE_IN_SECONDS;

/**
* Flag to check if hooks have been initialized
Expand Down
2 changes: 1 addition & 1 deletion core/Requirement/Required_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Required_tags extends Base_multiple
*
* @var int
*/
private $cache_expiration = 10 * MINUTE_IN_SECONDS;
private $cache_expiration = 1 * MINUTE_IN_SECONDS;

/**
* Flag to check if hooks have been initialized
Expand Down
Binary file modified languages/publishpress-checklists-de_DE.mo
Binary file not shown.
Loading

0 comments on commit dcdbf85

Please sign in to comment.