Plugin Directory

Changeset 2449870 for duplicate-post


Ignore:
Timestamp:
01/04/2021 11:10:08 AM (5 years ago)
Author:
lopo
Message:

Committing 4.0-RC3 to trunk

Location:
duplicate-post/trunk
Files:
4 added
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • duplicate-post/trunk/duplicate-post.php

    r2448400 r2449870  
    44 * Plugin URI: https://yoast.com/wordpress/plugins/duplicate-post/
    55 * Description: Clone posts and pages.
    6  * Version: 4.0-RC2
     6 * Version: 4.0-RC3
    77 * Author: Enrico Battocchi & Team Yoast
    88 * Author URI: https://yoast.com
     
    4343}
    4444
    45 define( 'DUPLICATE_POST_CURRENT_VERSION', '4.0-RC2' );
     45define( 'DUPLICATE_POST_CURRENT_VERSION', '4.0-RC3' );
    4646
    4747$duplicate_post_autoload_file = __DIR__ . '/vendor/autoload.php';
  • duplicate-post/trunk/src/ui/class-asset-manager.php

    r2447378 r2449870  
    4747            \plugins_url( \sprintf( 'js/dist/duplicate-post-edit-%s.js', $flattened_version ), DUPLICATE_POST_FILE ),
    4848            [
    49                 'wp-blocks',
     49                'wp-components',
    5050                'wp-element',
    5151                'wp-i18n',
     
    5959            \plugins_url( \sprintf( 'js/dist/duplicate-post-strings-%s.js', $flattened_version ), DUPLICATE_POST_FILE ),
    6060            [
     61                'wp-components',
    6162                'wp-element',
    6263                'wp-i18n',
  • duplicate-post/trunk/src/ui/class-classic-editor.php

    r2447378 r2449870  
    208208     */
    209209    public function change_republish_strings_classic_editor( $translation, $text ) {
    210         if ( $this->should_change_rewrite_republish_copy( \get_post() ) && $text === 'Publish' ) {
    211             return \__( 'Republish', 'duplicate-post' );
     210        if ( $this->should_change_rewrite_republish_copy( \get_post() ) ) {
     211            if ( $text === 'Publish' ) {
     212                return \__( 'Republish', 'duplicate-post' );
     213            }
     214
     215            if ( $text === 'Publish on: %s' ) {
     216                /* translators: %s: Date on which the post is to be republished. */
     217                return \__( 'Republish on: %s', 'duplicate-post' );
     218            }
    212219        }
    213220
Note: See TracChangeset for help on using the changeset viewer.