Plugin Directory

Changeset 3454129


Ignore:
Timestamp:
02/04/2026 09:15:30 PM (7 weeks ago)
Author:
andergmartins
Message:

Update code for 1.2.0 and release it

Location:
publishpress-statuses
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • publishpress-statuses/tags/1.2.0/PublishPress_Statuses.php

    r3453967 r3454129  
    6464
    6565    private $all_moderation_statuses = [];
     66    public $filtered_post_status = [];
    6667
    6768    public $last_error = '';
  • publishpress-statuses/tags/1.2.0/common/js/post-block-edit.dev.js

    r3453967 r3454129  
    181181        if (ppObjEdit.lockStatus) {
    182182            $('.editor-change-status__options input').prop('disabled', true);
     183            $('.publishpress-extended-post-privacy select').prop('disabled', true);
    183184        }
    184185    }
  • publishpress-statuses/tags/1.2.0/common/js/post-block-edit.js

    r3453967 r3454129  
    1313if((typeof forceRefresh!="undefined"&&forceRefresh)||(($('button.editor-post-publish-button').length||$('button.editor-post-publish-panel__toggle').length)&&($('button.editor-post-save-draft').length||($('div.publishpress-extended-post-status select option[value="_pending"]').length&&('pending'==$('div.publishpress-extended-post-status select').val()||'_pending'==$('div.publishpress-extended-post-status select').val()))))||((typeof window.PPCustomStatuses!='undefined')&&(typeof window.PPCustomStatuses['isRevision']!='undefined')&&(window.PPCustomStatuses.isRevision))){clearInterval(initInterval);initInterval=null;if($('button.editor-post-publish-panel__toggle').length){if(typeof ppObjEdit.prePublish!='undefined'&&ppObjEdit.prePublish){let status=wp.data.select('core/editor').getEditedPostAttribute('status');if(-1==window.PPCustomStatuses.publishedStatuses.indexOf(status)){PP_RecaptionButton('prePublish','button.editor-post-publish-panel__toggle',ppObjEdit.prePublish);}}
    1414$(document).on('click','button.editor-post-publish-panel__toggle,span.pp-recaption-prepublish-button',function(){PP_SetPublishButtonCaption('',false);});}else{PP_SetPublishButtonCaption(ppObjEdit.publish,false);}}
    15 if(ppObjEdit.lockStatus){$('.editor-change-status__options input').prop('disabled',true);}}
     15if(ppObjEdit.lockStatus){$('.editor-change-status__options input').prop('disabled',true);$('.publishpress-extended-post-privacy select').prop('disabled',true);}}
    1616var initInterval=setInterval(PP_InitializeBlockEditorModifications,50);setInterval(function(){if($('span.presspermit-editor-button button.is-busy').length){let saving=wp.data.select('core/editor').isSavingPost();if(!saving){$('span.presspermit-editor-button button.is-busy').removeClass('is-busy');}}},200);var ppLastPublishCaption='';setInterval(function(){if(ppObjEdit.moveParentUI){$('div.editor-post-panel__row-label').each(function(i,e){if($(e).html()==ppObjEdit.parentLabel){$(e).closest('div.editor-post-panel__row').insertAfter($('div.editor-post-panel__row-label:contains('+ppObjEdit.publishLabel+')').closest('div.editor-post-panel__row').next());}});}
    1717if($('div.editor-post-publish-panel__header-cancel-button').length){PP_SetPublishButtonCaption(ppObjEdit.publish,false);}
  • publishpress-statuses/tags/1.2.0/readme.txt

    r3453965 r3454129  
    77Requires PHP: 7.2.5
    88Tested up to: 6.8
    9 Stable tag: 1.1.14
     9Stable tag: 1.2.0
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    1515== Description ==
    1616
    17 Have you ever wanted to label a WordPress post something other than "Draft" or "Pending Review"? The [PublishPress Statuses](https://publishpress.com/statuses/) plugin can help. 
     17Have you ever wanted to label a WordPress post something other than "Draft" or "Pending Review"? The [PublishPress Statuses](https://publishpress.com/statuses/) plugin can help.
    1818
    1919PublishPress Statuses allows you to create additional statuses for your posts. For example, you can add statuses such as "In Progress", "Needs Work", or "Rejected". You can also control which users can move posts to each status.
     
    2121## Why Use PublishPress Statuses?
    2222
    23 WordPress provides you with only two statuses for your post: "Draft" or "Pending Review". This means that before your content is published it can only be labeled as "Draft" or "Pending Review". 
     23WordPress provides you with only two statuses for your post: "Draft" or "Pending Review". This means that before your content is published it can only be labeled as "Draft" or "Pending Review".
    2424
    2525Those statuses are too limiting for many publishers. For example, what label should you use for content that is assigned to a writer? What label should you use for a post that needs work, or has been rejected? With the PublishPress Statuses plugin, you can add new statuses that accurately describe the stages of your publishing process.
     
    3232## Pre-Publication Statuses
    3333
    34 Go to the "Statuses" area in your WordPress site and you'll six different statuses. This is the [main workflow](https://publishpress.com/knowledge-base/main-workflow/). Every post on your site must use this workflow. However, with PublishPress Statuses, you can move, rearrange and add to this workflow. 
     34Go to the "Statuses" area in your WordPress site and you'll six different statuses. This is the [main workflow](https://publishpress.com/knowledge-base/main-workflow/). Every post on your site must use this workflow. However, with PublishPress Statuses, you can move, rearrange and add to this workflow.
    3535
    36 - **Draft**: This is the WordPress default status and can not be modified. 
     36- **Draft**: This is the WordPress default status and can not be modified.
    3737- **Pitch**: This is a new status. You can use this status to indicate the post is just an idea.
    3838- **Assigned**: This is a new status. You can use this status to show the post has been given to a writer.
     
    5151[See how control access to statuses](https://publishpress.com/knowledge-base/statuses-options/).
    5252
    53 You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin. 
     53You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin.
    5454
    5555[Click here to see add advanced capabilities to statuses](https://publishpress.com/knowledge-base/extended-capabilities-statuses/).
     
    7575[See how control access to visibility statuses](https://publishpress.com/knowledge-base/custom-capabilities-visibility-statuses/).
    7676
    77 You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin. 
     77You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin.
    7878
    7979## Join PublishPress and get the Pro plugins ##
     
    9696Together, these plugins are a suite of powerful publishing tools for WordPress. If you need to create a professional workflow in WordPress, with moderation, revisions, permissions and more, then you should try PublishPress.
    9797
    98 ## Bug Reports 
     98## Bug Reports
    9999
    100100Bug reports for PublishPress Statuses are welcomed in our [repository on GitHub](https://github.com/publishpress/publishpress-statuses). Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.
     
    102102== Screenshots ==
    103103
    104 1. Using PublishPress Statuses you can add custom workflow options that are available when editing posts. You can build one main workflow for your posts. This workflow will be available to your users on the post editing screen. 
     1041. Using PublishPress Statuses you can add custom workflow options that are available when editing posts. You can build one main workflow for your posts. This workflow will be available to your users on the post editing screen.
    1051052. In addition to the default workflow, PublishPress Statuses allows you to create alternate workflows. These statuses are for content that is not on a direct path to publication. Examples of these alternate workflows include "Deferred", "Needs Work" and "Rejected".
    1061063. PublishPress Statuses supports branches in your workflows. You can create parent and child statuses. This allows posts to move through the individual branch before returning to the main workflow.
     
    159159Yes, you can use the Scheduled status with this plugin. "Future" is one of the default post statuses available in WordPress. You will often see it called "Scheduled".
    160160
    161 A post in the Future status is not published yet, but is scheduled to be published in a future date. 
     161A post in the Future status is not published yet, but is scheduled to be published in a future date.
    162162
    163163[Click here to see more about the Future status](https://publishpress.com/knowledge-base/future/).
  • publishpress-statuses/trunk/PublishPress_Statuses.php

    r3453967 r3454129  
    6464
    6565    private $all_moderation_statuses = [];
     66    public $filtered_post_status = [];
    6667
    6768    public $last_error = '';
  • publishpress-statuses/trunk/common/js/post-block-edit.dev.js

    r3453967 r3454129  
    181181        if (ppObjEdit.lockStatus) {
    182182            $('.editor-change-status__options input').prop('disabled', true);
     183            $('.publishpress-extended-post-privacy select').prop('disabled', true);
    183184        }
    184185    }
  • publishpress-statuses/trunk/common/js/post-block-edit.js

    r3453967 r3454129  
    1313if((typeof forceRefresh!="undefined"&&forceRefresh)||(($('button.editor-post-publish-button').length||$('button.editor-post-publish-panel__toggle').length)&&($('button.editor-post-save-draft').length||($('div.publishpress-extended-post-status select option[value="_pending"]').length&&('pending'==$('div.publishpress-extended-post-status select').val()||'_pending'==$('div.publishpress-extended-post-status select').val()))))||((typeof window.PPCustomStatuses!='undefined')&&(typeof window.PPCustomStatuses['isRevision']!='undefined')&&(window.PPCustomStatuses.isRevision))){clearInterval(initInterval);initInterval=null;if($('button.editor-post-publish-panel__toggle').length){if(typeof ppObjEdit.prePublish!='undefined'&&ppObjEdit.prePublish){let status=wp.data.select('core/editor').getEditedPostAttribute('status');if(-1==window.PPCustomStatuses.publishedStatuses.indexOf(status)){PP_RecaptionButton('prePublish','button.editor-post-publish-panel__toggle',ppObjEdit.prePublish);}}
    1414$(document).on('click','button.editor-post-publish-panel__toggle,span.pp-recaption-prepublish-button',function(){PP_SetPublishButtonCaption('',false);});}else{PP_SetPublishButtonCaption(ppObjEdit.publish,false);}}
    15 if(ppObjEdit.lockStatus){$('.editor-change-status__options input').prop('disabled',true);}}
     15if(ppObjEdit.lockStatus){$('.editor-change-status__options input').prop('disabled',true);$('.publishpress-extended-post-privacy select').prop('disabled',true);}}
    1616var initInterval=setInterval(PP_InitializeBlockEditorModifications,50);setInterval(function(){if($('span.presspermit-editor-button button.is-busy').length){let saving=wp.data.select('core/editor').isSavingPost();if(!saving){$('span.presspermit-editor-button button.is-busy').removeClass('is-busy');}}},200);var ppLastPublishCaption='';setInterval(function(){if(ppObjEdit.moveParentUI){$('div.editor-post-panel__row-label').each(function(i,e){if($(e).html()==ppObjEdit.parentLabel){$(e).closest('div.editor-post-panel__row').insertAfter($('div.editor-post-panel__row-label:contains('+ppObjEdit.publishLabel+')').closest('div.editor-post-panel__row').next());}});}
    1717if($('div.editor-post-publish-panel__header-cancel-button').length){PP_SetPublishButtonCaption(ppObjEdit.publish,false);}
  • publishpress-statuses/trunk/readme.txt

    r3453965 r3454129  
    77Requires PHP: 7.2.5
    88Tested up to: 6.8
    9 Stable tag: 1.1.14
     9Stable tag: 1.2.0
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    1515== Description ==
    1616
    17 Have you ever wanted to label a WordPress post something other than "Draft" or "Pending Review"? The [PublishPress Statuses](https://publishpress.com/statuses/) plugin can help. 
     17Have you ever wanted to label a WordPress post something other than "Draft" or "Pending Review"? The [PublishPress Statuses](https://publishpress.com/statuses/) plugin can help.
    1818
    1919PublishPress Statuses allows you to create additional statuses for your posts. For example, you can add statuses such as "In Progress", "Needs Work", or "Rejected". You can also control which users can move posts to each status.
     
    2121## Why Use PublishPress Statuses?
    2222
    23 WordPress provides you with only two statuses for your post: "Draft" or "Pending Review". This means that before your content is published it can only be labeled as "Draft" or "Pending Review". 
     23WordPress provides you with only two statuses for your post: "Draft" or "Pending Review". This means that before your content is published it can only be labeled as "Draft" or "Pending Review".
    2424
    2525Those statuses are too limiting for many publishers. For example, what label should you use for content that is assigned to a writer? What label should you use for a post that needs work, or has been rejected? With the PublishPress Statuses plugin, you can add new statuses that accurately describe the stages of your publishing process.
     
    3232## Pre-Publication Statuses
    3333
    34 Go to the "Statuses" area in your WordPress site and you'll six different statuses. This is the [main workflow](https://publishpress.com/knowledge-base/main-workflow/). Every post on your site must use this workflow. However, with PublishPress Statuses, you can move, rearrange and add to this workflow. 
     34Go to the "Statuses" area in your WordPress site and you'll six different statuses. This is the [main workflow](https://publishpress.com/knowledge-base/main-workflow/). Every post on your site must use this workflow. However, with PublishPress Statuses, you can move, rearrange and add to this workflow.
    3535
    36 - **Draft**: This is the WordPress default status and can not be modified. 
     36- **Draft**: This is the WordPress default status and can not be modified.
    3737- **Pitch**: This is a new status. You can use this status to indicate the post is just an idea.
    3838- **Assigned**: This is a new status. You can use this status to show the post has been given to a writer.
     
    5151[See how control access to statuses](https://publishpress.com/knowledge-base/statuses-options/).
    5252
    53 You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin. 
     53You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin.
    5454
    5555[Click here to see add advanced capabilities to statuses](https://publishpress.com/knowledge-base/extended-capabilities-statuses/).
     
    7575[See how control access to visibility statuses](https://publishpress.com/knowledge-base/custom-capabilities-visibility-statuses/).
    7676
    77 You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin. 
     77You can take this further and decide who assign, edit, and delete content in each status. This is possible if you also use the PublishPress Permissions Pro plugin.
    7878
    7979## Join PublishPress and get the Pro plugins ##
     
    9696Together, these plugins are a suite of powerful publishing tools for WordPress. If you need to create a professional workflow in WordPress, with moderation, revisions, permissions and more, then you should try PublishPress.
    9797
    98 ## Bug Reports 
     98## Bug Reports
    9999
    100100Bug reports for PublishPress Statuses are welcomed in our [repository on GitHub](https://github.com/publishpress/publishpress-statuses). Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.
     
    102102== Screenshots ==
    103103
    104 1. Using PublishPress Statuses you can add custom workflow options that are available when editing posts. You can build one main workflow for your posts. This workflow will be available to your users on the post editing screen. 
     1041. Using PublishPress Statuses you can add custom workflow options that are available when editing posts. You can build one main workflow for your posts. This workflow will be available to your users on the post editing screen.
    1051052. In addition to the default workflow, PublishPress Statuses allows you to create alternate workflows. These statuses are for content that is not on a direct path to publication. Examples of these alternate workflows include "Deferred", "Needs Work" and "Rejected".
    1061063. PublishPress Statuses supports branches in your workflows. You can create parent and child statuses. This allows posts to move through the individual branch before returning to the main workflow.
     
    159159Yes, you can use the Scheduled status with this plugin. "Future" is one of the default post statuses available in WordPress. You will often see it called "Scheduled".
    160160
    161 A post in the Future status is not published yet, but is scheduled to be published in a future date. 
     161A post in the Future status is not published yet, but is scheduled to be published in a future date.
    162162
    163163[Click here to see more about the Future status](https://publishpress.com/knowledge-base/future/).
Note: See TracChangeset for help on using the changeset viewer.