Coder Social home page Coder Social logo

prepare-new-version's People

Watchers

 avatar  avatar

prepare-new-version's Issues

Add an option screen

The plugin is currently completely automatic and the user cannot choose any of its functions to be activated or not.

We should create a option screen to let the user choose some things, like:

  • the post types for which "pending versions" would be activated
  • for each supported post type, the taxonomies which should be copied with each action (copy, duplication, erasement)
  • for each supported post type, the meta names which sould not be copied with each action: it's imho much more simple to choose that way vs. the ones that should be copied, since the user might not know all of them

These options should be saved through the WordPress Options API (http://codex.wordpress.org/Options_API).

There are already some methods in the include/option.php file of the plugin to get some of those data. For example, PNV_Option::get_post_types() returns supported post types.

The PNV::is_filtered_meta() method should be reviewed to call one PNV_Option method and get filtered metas from it, instead of creating a static array.

Schedule main post erasement

The plugin should give the user the ability to schedule the date and hour of an erasement.

For example, let's say a site contains a master post A, and one of its pending versions B. The main action for B is to erase its master: A.
Now, if the user wants to publish this new content at one time in particular (january the first at midnight for example...), we should let them choose that time and do it automagically, like WordPress does with regular scheduled posts.

It think we should then use the actions provided by WordPress core itself for the post scheduling machine: studying is needed here to see if it's possible to schedule a duplicata and then not publishing it, but its master instead...

Some plugins use 'add_meta_boxes' hook inconsistently

When activating "WCK" plugin, an error occurs because of the use of 'add_meta_boxes' hook: this plugin calls it without the second argument ($post).

We should be sure that this argument is present and maybe fill it with a default value.

Post status on quick edit

Hide post status select box for a duplicate when the user click on "quick edit" in the post list.

Duplication URL

Use post edition URL to handle duplication actions: this will be more accurate for rights verification.

'None' French translation

The French translation of 'None' is currently 'Aucun' instead of 'Aucune' since we're now talking about 'versions' which is a feminine word.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.