Plugin Directory

Changeset 3224935


Ignore:
Timestamp:
01/18/2025 08:53:11 PM (14 months ago)
Author:
GregRoss
Message:

Update to version 4.0 from GitHub

Location:
just-writing
Files:
30 added
2 deleted
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • just-writing/assets/banner-772x250.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • just-writing/assets/icon-128x128.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • just-writing/assets/icon-256x256.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • just-writing/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/screenshot-4.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/screenshot-5.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/screenshot-6.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/source-banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/source-icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/assets/source-icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • just-writing/tags/4.0/4.5/just-writing-options.4.5.php

    r1406948 r3224935  
    173173        }
    174174   
    175     wp_register_script( 'justwritingoptions_js', plugins_url( '', __FILE__ )  . '/just-writing-options.4.5.js' );
     175    $file_version = JustWritingFileVersion();
     176
     177    wp_register_script( 'justwritingoptions_js', plugins_url( '', __FILE__ )  . '/just-writing-options.' . $file_version . '.js' );
    176178    wp_enqueue_script( 'justwritingoptions_js' );
    177179
  • just-writing/tags/4.0/just-writing.php

    r2363352 r3224935  
    22/*
    33Plugin Name: Just Writing
    4 Version: 3.9.1
     4Version: 4.0
    55Plugin URI: http://toolstack.com/just-writing
    66Author: Greg Ross
     
    1414Read the accompanying readme.txt file for instructions and documentation.
    1515
    16 Copyright (c) 2013-2020 by Greg Ross
     16Copyright (c) 2013-2025 by Greg Ross
    1717
    1818This software is released under the GPL v2.0, see license.txt for details
     
    2828if( !function_exists( 'JustWritingLoad' ) )
    2929    {
    30     define( 'JustWritingVersion', '3.9.1' );
     30    define( 'JustWritingVersion', '4.0' );
    3131
    3232    // Load the translation code.
     
    3838
    3939    // Add translation action.
    40     add_action('plugins_loaded', 'just_writing_language');
    41    
     40    add_action('init', 'just_writing_language');
     41
    4242    Function JustWritingFileVersion()
    4343        {
    4444        GLOBAL $wp_version;
    45        
     45
    4646        if( version_compare( $wp_version, '3.9', '<' ) )
    4747            {
    4848            return '3.5';
    4949            }
    50            
     50
    5151        // We compare against 4.0.99 in the second version compare to ensure we use the right version for beta/rc versions of WP.
    5252        if( version_compare( $wp_version, '3.9', '>=' ) && version_compare( $wp_version, '4.0.99', '<=') )
     
    6767            }
    6868
    69         return '4.5';
     69        // We compare against 5.6.99 in the second version compare to ensure we use the right version for beta/rc versions of WP.
     70        if( version_compare( $wp_version, '4.5', '>=' ) && version_compare( $wp_version, '5.6.99', '<=') )
     71            {
     72            return '4.5';
     73            }
     74
     75        return '5.7';
    7076        }
    71    
     77
    7278    /*
    7379        This function is called during a page/post page load that we're editing.
     
    7783        JustWritingLoad( 'edit' );
    7884        }
    79        
     85
    8086    /*
    8187        This function is called during a new page/post page.
     
    8793
    8894    $file_version = JustWritingFileVersion();
    89    
     95
    9096    include_once( $file_version . '/just-writing.' . $file_version . '.php' );
    9197    include_once( $file_version . '/just-writing-editor.' . $file_version . '.php' );
     
    9399
    94100// Check to see if we're installed and are the current version.
    95 if( get_option('just_writing_plugin_version') != JustWritingVersion ) 
    96     {   
     101if( get_option('just_writing_plugin_version') != JustWritingVersion )
     102    {
    97103    include_once( dirname( __FILE__ ) . '/just-writing-install.php' );
    98104    }
    99    
     105
    100106// Add the admin page to the settings menu.
    101107add_action( 'admin_menu', 'JustWritingAddSettingsMenu', 1 );
     
    107113    add_action( 'admin_head-post-new.php', 'JustWritingLoadNew' );
    108114    add_action( 'admin_head-post.php', 'JustWritingLoadEdit' );
    109    
     115
    110116    // Handle the user profile items
    111117    add_action( 'show_user_profile', 'JustWritingLoadProfile' );
     
    113119    add_action( 'personal_options_update', 'JustWritingSaveProfile' );
    114120    add_action( 'edit_user_profile_update', 'JustWritingSaveProfile' );
    115    
     121
    116122    // Handle adding DFWM to the post/page rows
    117123    add_filter('post_row_actions', 'JustWritingLinkRow',10,2);
    118124    add_filter('page_row_actions', 'JustWritingLinkRow',10,2);
    119    
     125
    120126    // Handle adding Writing mode to the post/pages menu
    121127    add_action( 'admin_menu', 'JustWritingEditorMenuItem' );
  • just-writing/tags/4.0/readme.txt

    r3004691 r3224935  
    66Tags: admin posts writing DFW
    77Requires at least: 3.5.0
    8 Tested up to: 6.4.1
    9 Stable tag: 3.9.1
     8Tested up to: 6.7.1
     9Stable tag: 4.0
    1010License: GPLv2
    1111
     
    3939    * H2                        * Strikethrough
    4040    * H3                        * Subscript
    41     * H4                        * Superscript   
     41    * H4                        * Superscript
    4242    * H5                        * Underline
    4343    * H6                        * Undo
    44     * Indent               
     44    * Indent
    4545
    4646= More Features =
     
    5252    * Option to center the toolbar on screen
    5353    * Adds an optional Preview button to the right of the Save button
    54     * Moves the exit link to the right of the new Preview 
     54    * Moves the exit link to the right of the new Preview
    5555      button as a real button
    5656    * Re-orders the button list to make more sense
     
    7575    * Support for full meta data editing inside of Writing mode.
    7676    * Closing and re-arranging postboxes in the meta area are not saved between sessions.
    77    
     77
    7878= License =
    79    
     79
    8080This code is released under the GPL v2, see license.txt for details.
    8181
     
    147147
    148148== Changelog ==
     149= 4.0 =
     150* Release date: January 18, 2025
     151* Fixed warnings with language text domain loading.
     152* Added support for WordPress 5.7+.
     153
    149154= 3.9.1 =
    150155* Release date: August 17, 2020
     
    168173* Update to support WordPress 4.3.
    169174
    170 = 3.6.2 = 
     175= 3.6.2 =
    171176* Release date: January 28, 2015
    172177* Update utility class to avoid re-declaration errors.
     
    316321* Added option to use a listbox instead of individual buttons
    317322* Fixed bug in border option selector which would not allow you to save the hide option
    318  
     323
    319324= 2.3 =
    320325* Release date: October 26, 2013
     
    324329* Added option to start in DFW when editing posts
    325330* Added 'lighter' border option for title/body area
    326 * Cleaned up the De/Select All code in the user profile page, should work with all 
     331* Cleaned up the De/Select All code in the user profile page, should work with all
    327332  browsers now
    328333
  • just-writing/trunk/4.5/just-writing-options.4.5.php

    r1406948 r3224935  
    173173        }
    174174   
    175     wp_register_script( 'justwritingoptions_js', plugins_url( '', __FILE__ )  . '/just-writing-options.4.5.js' );
     175    $file_version = JustWritingFileVersion();
     176
     177    wp_register_script( 'justwritingoptions_js', plugins_url( '', __FILE__ )  . '/just-writing-options.' . $file_version . '.js' );
    176178    wp_enqueue_script( 'justwritingoptions_js' );
    177179
  • just-writing/trunk/just-writing.php

    r2363352 r3224935  
    22/*
    33Plugin Name: Just Writing
    4 Version: 3.9.1
     4Version: 4.0
    55Plugin URI: http://toolstack.com/just-writing
    66Author: Greg Ross
     
    1414Read the accompanying readme.txt file for instructions and documentation.
    1515
    16 Copyright (c) 2013-2020 by Greg Ross
     16Copyright (c) 2013-2025 by Greg Ross
    1717
    1818This software is released under the GPL v2.0, see license.txt for details
     
    2828if( !function_exists( 'JustWritingLoad' ) )
    2929    {
    30     define( 'JustWritingVersion', '3.9.1' );
     30    define( 'JustWritingVersion', '4.0' );
    3131
    3232    // Load the translation code.
     
    3838
    3939    // Add translation action.
    40     add_action('plugins_loaded', 'just_writing_language');
    41    
     40    add_action('init', 'just_writing_language');
     41
    4242    Function JustWritingFileVersion()
    4343        {
    4444        GLOBAL $wp_version;
    45        
     45
    4646        if( version_compare( $wp_version, '3.9', '<' ) )
    4747            {
    4848            return '3.5';
    4949            }
    50            
     50
    5151        // We compare against 4.0.99 in the second version compare to ensure we use the right version for beta/rc versions of WP.
    5252        if( version_compare( $wp_version, '3.9', '>=' ) && version_compare( $wp_version, '4.0.99', '<=') )
     
    6767            }
    6868
    69         return '4.5';
     69        // We compare against 5.6.99 in the second version compare to ensure we use the right version for beta/rc versions of WP.
     70        if( version_compare( $wp_version, '4.5', '>=' ) && version_compare( $wp_version, '5.6.99', '<=') )
     71            {
     72            return '4.5';
     73            }
     74
     75        return '5.7';
    7076        }
    71    
     77
    7278    /*
    7379        This function is called during a page/post page load that we're editing.
     
    7783        JustWritingLoad( 'edit' );
    7884        }
    79        
     85
    8086    /*
    8187        This function is called during a new page/post page.
     
    8793
    8894    $file_version = JustWritingFileVersion();
    89    
     95
    9096    include_once( $file_version . '/just-writing.' . $file_version . '.php' );
    9197    include_once( $file_version . '/just-writing-editor.' . $file_version . '.php' );
     
    9399
    94100// Check to see if we're installed and are the current version.
    95 if( get_option('just_writing_plugin_version') != JustWritingVersion ) 
    96     {   
     101if( get_option('just_writing_plugin_version') != JustWritingVersion )
     102    {
    97103    include_once( dirname( __FILE__ ) . '/just-writing-install.php' );
    98104    }
    99    
     105
    100106// Add the admin page to the settings menu.
    101107add_action( 'admin_menu', 'JustWritingAddSettingsMenu', 1 );
     
    107113    add_action( 'admin_head-post-new.php', 'JustWritingLoadNew' );
    108114    add_action( 'admin_head-post.php', 'JustWritingLoadEdit' );
    109    
     115
    110116    // Handle the user profile items
    111117    add_action( 'show_user_profile', 'JustWritingLoadProfile' );
     
    113119    add_action( 'personal_options_update', 'JustWritingSaveProfile' );
    114120    add_action( 'edit_user_profile_update', 'JustWritingSaveProfile' );
    115    
     121
    116122    // Handle adding DFWM to the post/page rows
    117123    add_filter('post_row_actions', 'JustWritingLinkRow',10,2);
    118124    add_filter('page_row_actions', 'JustWritingLinkRow',10,2);
    119    
     125
    120126    // Handle adding Writing mode to the post/pages menu
    121127    add_action( 'admin_menu', 'JustWritingEditorMenuItem' );
  • just-writing/trunk/readme.txt

    r3004691 r3224935  
    66Tags: admin posts writing DFW
    77Requires at least: 3.5.0
    8 Tested up to: 6.4.1
    9 Stable tag: 3.9.1
     8Tested up to: 6.7.1
     9Stable tag: 4.0
    1010License: GPLv2
    1111
     
    3939    * H2                        * Strikethrough
    4040    * H3                        * Subscript
    41     * H4                        * Superscript   
     41    * H4                        * Superscript
    4242    * H5                        * Underline
    4343    * H6                        * Undo
    44     * Indent               
     44    * Indent
    4545
    4646= More Features =
     
    5252    * Option to center the toolbar on screen
    5353    * Adds an optional Preview button to the right of the Save button
    54     * Moves the exit link to the right of the new Preview 
     54    * Moves the exit link to the right of the new Preview
    5555      button as a real button
    5656    * Re-orders the button list to make more sense
     
    7575    * Support for full meta data editing inside of Writing mode.
    7676    * Closing and re-arranging postboxes in the meta area are not saved between sessions.
    77    
     77
    7878= License =
    79    
     79
    8080This code is released under the GPL v2, see license.txt for details.
    8181
     
    147147
    148148== Changelog ==
     149= 4.0 =
     150* Release date: January 18, 2025
     151* Fixed warnings with language text domain loading.
     152* Added support for WordPress 5.7+.
     153
    149154= 3.9.1 =
    150155* Release date: August 17, 2020
     
    168173* Update to support WordPress 4.3.
    169174
    170 = 3.6.2 = 
     175= 3.6.2 =
    171176* Release date: January 28, 2015
    172177* Update utility class to avoid re-declaration errors.
     
    316321* Added option to use a listbox instead of individual buttons
    317322* Fixed bug in border option selector which would not allow you to save the hide option
    318  
     323
    319324= 2.3 =
    320325* Release date: October 26, 2013
     
    324329* Added option to start in DFW when editing posts
    325330* Added 'lighter' border option for title/body area
    326 * Cleaned up the De/Select All code in the user profile page, should work with all 
     331* Cleaned up the De/Select All code in the user profile page, should work with all
    327332  browsers now
    328333
Note: See TracChangeset for help on using the changeset viewer.