Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.0.1 #1518

Merged
merged 70 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d1d9d10
Introduce integration with new Statuses plugin
agapetry Sep 9, 2023
902efcd
Styling for colorized status captions in Planner Settings
agapetry Sep 27, 2023
c9c9c44
target attribute for status edit link in Planner Settings
agapetry Sep 27, 2023
ff40b55
Beta version tag
agapetry Sep 27, 2023
beb3a31
Merge pull request #1481 from publishpress/master
olatechpro Sep 28, 2023
346ac71
Bump composer/composer from 2.2.21 to 2.2.22
dependabot[bot] Sep 29, 2023
9c8191f
Settings: status label styling
agapetry Oct 4, 2023
de53924
- PHP Fatal error: Uncaught TypeError #1486
olatechpro Oct 13, 2023
5f8e85a
Merge pull request #1487 from publishpress/feature/#1486_PHP_Fatal_er…
olatechpro Oct 13, 2023
09ecff4
Fix #1488, Upgrade Reviews and Version Notices libraries
andergmartins Oct 13, 2023
0481363
Bump @babel/traverse from 7.14.7 to 7.23.2
dependabot[bot] Oct 17, 2023
d43ef43
Bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Oct 27, 2023
af68734
Merge changes from v3.12.2
agapetry Nov 18, 2023
20b37aa
Revert files for merge
agapetry Nov 18, 2023
b2872bc
Remove obsolete module
agapetry Nov 18, 2023
8702bcf
Merge pull request #1493 from publishpress/master
agapetry Nov 18, 2023
8178866
Merge pull request #1494 from publishpress/development
agapetry Nov 18, 2023
d474dc8
Restore our changes following merge
agapetry Nov 18, 2023
2ac787a
Merge branch 'feature-publishpress-statuses-integration' of https://g…
agapetry Nov 18, 2023
8476d50
Delete custom-status module, which has been replace by Statuses plugin
agapetry Nov 18, 2023
462ffaf
Call PublishPress_Statuses for default icon color, status edit link
agapetry Nov 18, 2023
8547416
Change log
agapetry Nov 18, 2023
4a70588
Merge pull request #1496 from publishpress/feature-publishpress-statu…
olatechpro Dec 13, 2023
ee157b7
Merge pull request #1491 from publishpress/dependabot/npm_and_yarn/br…
olatechpro Dec 13, 2023
9776686
Merge pull request #1490 from publishpress/dependabot/npm_and_yarn/ba…
olatechpro Dec 13, 2023
9ad43e1
Merge pull request #1489 from publishpress/1488-upgrade-reviews-and-v…
olatechpro Dec 13, 2023
48d4908
Merge pull request #1484 from publishpress/dependabot/composer/compos…
olatechpro Dec 13, 2023
c2b6c77
Update changelog
olatechpro Dec 13, 2023
32c83ad
Update version
olatechpro Dec 13, 2023
b3a494e
Composer update
olatechpro Dec 13, 2023
f9fca0b
Prevent old Planner > Settings > Statuses links from causing error.
agapetry Dec 14, 2023
4c28c3a
Merge branch 'development' into release-v4.0.0
agapetry Dec 14, 2023
5747ab1
Merge pull request #1499 from publishpress/release-v4.0.0
agapetry Dec 14, 2023
ec3db11
Add First Name and Last Name Notification Shortcode
rizaardiyanto1412 Dec 14, 2023
a1defbd
Add First Name and Last Name Notification Shortcode
rizaardiyanto1412 Dec 14, 2023
f4141f9
Merge pull request #1501 from rizaardiyanto1412/development
olatechpro Dec 14, 2023
dff20de
Update changelog and release date
olatechpro Dec 14, 2023
d6bbde8
Composer update
olatechpro Dec 14, 2023
1faab79
Remove not used host IP from dev-workspace scripts
andergmartins Dec 15, 2023
ca409e6
Remove not existent script from webpack config
andergmartins Dec 15, 2023
d99f66e
Update the dev-workspace scripts for running outside dev-workspace dir
andergmartins Dec 15, 2023
b404ba1
Replace ReactDOM.render with createRoot from wp.element, #1506
andergmartins Dec 15, 2023
51e1e5e
Minor code style fix
andergmartins Dec 15, 2023
c858139
Fix missed key props on react components, #1507
andergmartins Dec 15, 2023
00c5e5d
Fix the selected item on select boxes in the calendar, #1508
andergmartins Dec 15, 2023
c06848d
Remove javascript from href attributes, #1511
andergmartins Dec 15, 2023
c1649a9
Improve solution for #1506 and restoring support for WP 6.1
andergmartins Dec 15, 2023
589e6e9
- User type metadata displaying user id instead of display name in no…
olatechpro Dec 18, 2023
78a4b7f
Merge pull request #1516 from publishpress/feature/#1515_User_type_me…
olatechpro Dec 18, 2023
62f3722
Merge branch 'release-v4.0.0' into release-4.0.0-rc
olatechpro Dec 20, 2023
9fdd188
Merge pull request #1517 from publishpress/release-4.0.0-rc
olatechpro Dec 20, 2023
7184a2c
- Fatal error on the Status column in the Content Overview screen whe…
olatechpro Dec 20, 2023
f6626f0
- Planner FREE V4.0.0 Translation Updates ES-FR-IT #1512
olatechpro Dec 20, 2023
9469b3f
- Make Content Overview default date filters to 1 month back and 1 mo…
olatechpro Dec 20, 2023
3367519
Update changelog
olatechpro Dec 20, 2023
05e7f91
Npm run dev
olatechpro Dec 20, 2023
b2b18d9
Composer update
olatechpro Dec 20, 2023
d1a0f1d
Admin notice, plugin settings note for missing or inactive PublishPre…
agapetry Jan 4, 2024
5ea81b7
Lang: update .pot
agapetry Jan 4, 2024
ccbcc8c
Update copyright dates; standardize plugin header block
agapetry Jan 4, 2024
ab4d266
Update version and release date
olatechpro Jan 4, 2024
8d2e747
Composer update
olatechpro Jan 4, 2024
8f09399
Remove custom status directory from module list
olatechpro Jan 4, 2024
aed0a31
Fix PHP Notice on PublishPress statuses admin notices display, settin…
agapetry Jan 4, 2024
8a9988e
composer update
olatechpro Jan 4, 2024
2bb61dd
PP Statuses admin notice: fix thickbox display on Posts / Pages screen
agapetry Jan 4, 2024
2dda520
PP Statuses settings caption: use thickbox link if Statuses is not in…
agapetry Jan 4, 2024
4ccc09b
Merge branch 'release-4.0.1' of https://github.com/publishpress/Publi…
agapetry Jan 4, 2024
97a97e7
Lang: update .pot
agapetry Jan 4, 2024
c520698
Composer update
olatechpro Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ node_modules
builder.yml
builder.yml.dist
.editorconfig
/cache

!tests/_support/.gitkeep
tests/_support/*
Expand Down
9 changes: 7 additions & 2 deletions common/css/publishpress-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,12 @@ div.pp-icon img {
Status color box */

.pp-status-color {
width: 10px;
height: 10px;
display: inline-block;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
padding: 2px 5px 2px 5px;
}

.pp-status-color + strong {
Expand Down Expand Up @@ -245,6 +244,12 @@ Status color box */
float: left;
}

.pp-admin-notice {
padding: 10px !important;
line-height: 18px;
position: relative;
}

@media (max-width: 1199px) {

.pp-columns-wrapper.pp-enable-sidebar .pp-column-left,
Expand Down
55 changes: 25 additions & 30 deletions common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function module_enabled($slug)
{
global $publishpress;

if ('custom_status' == $slug) {
return class_exists('PublishPress_Statuses');
}

return isset($publishpress->$slug) && $publishpress->$slug->module->options->enabled == 'on';
}

Expand Down Expand Up @@ -180,7 +184,6 @@ public function get_post_types_for_module($module)

/**
* Get all of the currently available post statuses
* This should be used in favor of calling $publishpress->custom_status->get_custom_statuses() directly
*
* @return array $post_statuses All of the post statuses that aren't a published state
*
Expand All @@ -190,11 +193,7 @@ public function get_post_statuses()
{
global $publishpress;

if ($this->module_enabled('custom_status')) {
return $publishpress->custom_status->get_custom_statuses();
} else {
return $this->get_core_post_statuses();
}
return $publishpress->getPostStatuses();
}

/**
Expand All @@ -206,26 +205,22 @@ public function get_post_statuses()
*/
protected function get_core_post_statuses()
{
return [
(object)[
'name' => __('Draft'),
'description' => '',
'slug' => 'draft',
'position' => 1,
],
(object)[
'name' => __('Pending Review'),
'description' => '',
'slug' => 'pending',
'position' => 2,
],
(object)[
'name' => __('Published'),
'description' => '',
'slug' => 'publish',
'position' => 3,
],
];
global $publishpress;

return $publishpress->getCorePostStatuses();
}

/**
* Back compat for existing code calling $publishpress->custom_status->get_custom_status_by()
*
* @return object
*
* @since 4.0
*/
public function get_custom_status_by($field, $value) {
global $publishpress;

return $publishpress->getPostStatusBy($field, $value);
}

/**
Expand Down Expand Up @@ -273,11 +268,11 @@ public function get_post_status_friendly_name($status)
];

// Custom statuses only handles workflow statuses
if ($this->module_enabled('custom_status')
&& !in_array($status, ['publish', 'future', 'private', 'trash'])) {
$status_object = $publishpress->custom_status->get_custom_status_by('slug', $status);
if (!in_array($status, ['publish', 'future', 'private', 'trash'])) {
$status_object = $publishpress->getPostStatusBy('slug', $status);

if ($status_object && !is_wp_error($status_object)) {
$status_friendly_name = $status_object->name;
$status_friendly_name = $status_object->label;
}
} elseif (array_key_exists($status, $builtin_stati)) {
$status_friendly_name = $builtin_stati[$status];
Expand Down
Loading
Loading