Plugin Directory

Changeset 1533005


Ignore:
Timestamp:
11/12/2016 06:14:29 PM (9 years ago)
Author:
josemanuelsh
Message:

Fixed bug that had HTML conflicting in Edit Post page

Location:
coming-soon-for-genesis/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • coming-soon-for-genesis/trunk/inc/admin.php

    r1526511 r1533005  
    1919    protected function get_field_id( $id ) {
    2020        return sprintf( '%s_%s', $this->settings_field, $id );
     21    }
     22
     23
     24    //* HTML Editor for Meta Boxes
     25    function gcs_html_editor( $content ) {
     26        wp_editor( $content['text'], $content['id'], $content['args'] );
    2127    }
    2228
     
    134140    // Register Meta Boxes
    135141    function metaboxes() {
     142        # Editor Fix to Include in Metabox
     143        add_action( 'edit_form_advanced', array( $this, 'gcs_html_editor' ) );
     144        # Add Metaboxes
    136145        add_meta_box( 'genesis-coming-soon-general', __( 'General', 'coming-soon-for-genesis' ), array( $this, 'general_box' ), $this->pagehook, 'main', 'high' );
    137146        add_meta_box( 'genesis-coming-soon-content', __( 'Content', 'coming-soon-for-genesis' ), array( $this, 'content_box' ), $this->pagehook, 'main', 'default' );
  • coming-soon-for-genesis/trunk/plugin.php

    r1529052 r1533005  
    1010Domain Path: /languages
    1111
    12 Version: 1.0.1
     12Version: 1.0.2
    1313
    1414License: GNU General Public License v3.0
     
    2525
    2626//* Define Constants
    27 define( 'GCS_VERSION', '1.0.0' );
     27define( 'GCS_VERSION', '1.0.2' );
    2828define( 'GCS_SETTINGS', 'gcs-settings' );
    2929define( 'GCS_PLUGIN_DIR', dirname( __FILE__ ) );
     
    8989function gcs_setup_theme( $content ) {
    9090    add_theme_support( 'genesis-responsive-viewport' );
    91 }
    92 
    93 
    94 //* HTML Editor for Meta Boxes
    95 add_action( 'edit_form_advanced', 'gcs_html_editor' );
    96 function gcs_html_editor( $content ) {
    97     wp_editor( $content['text'], $content['id'], $content['args'] );
    9891}
    9992
  • coming-soon-for-genesis/trunk/readme.txt

    r1529052 r1533005  
    44Tags: genesis, genesiswp, studiopress, coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, offline, unavailable, under construction, under construction page
    55Requires at least: 4.4.2
    6 Tested up to: 4.6
    7 Stable tag: 1.0.1
     6Tested up to: 4.6.1
     7Stable tag: 1.0.2
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    7878== Changelog ==
    7979
     80= 1.0.2 =
     81* Fixed bug that had HTML conflicting in Edit Post page
     82
    8083= 1.0.1 =
    8184* Fixed bug that hid background images if body had a background color in CSS
Note: See TracChangeset for help on using the changeset viewer.