WordPress.org

Plugin Directory

Changeset 1227104


Ignore:
Timestamp:
08/21/15 10:56:50 (22 months ago)
Author:
nofearinc
Message:

1.6 update for DX Plugin Base

Location:
dx-plugin-base
Files:
21 added
3 edited

Legend:

Unmodified
Added
Removed
  • dx-plugin-base/trunk/dx-plugin-base.php

    r1010092 r1227104  
    22/** 
    33 * Plugin Name: DX Plugin Base 
     4 * Description: A plugin framework for building new WordPress plugins reusing the accepted APIs and best practices 
    45 * Plugin URI: http://example.org/ 
    56 * Author: nofearinc 
    67 * Author URI: http://devwp.eu/ 
    7  * Version: 1.5 
     8 * Version: 1.6 
    89 * Text Domain: dx-sample-plugin 
    910 * License: GPL2 
     
    3031 */ 
    3132 
    32 define( 'DXP_VERSION', '1.5' ); 
     33define( 'DXP_VERSION', '1.6' ); 
    3334define( 'DXP_PATH', dirname( __FILE__ ) ); 
    3435define( 'DXP_PATH_INCLUDES', dirname( __FILE__ ) . '/inc' ); 
     
    125126     * 
    126127     */ 
    127     public function dx_add_admin_JS() { 
     128    public function dx_add_admin_JS( $hook ) { 
    128129        wp_enqueue_script( 'jquery' ); 
    129130        wp_register_script( 'samplescript-admin', plugins_url( '/js/samplescript-admin.js' , __FILE__ ), array('jquery'), '1.0', true ); 
     
    175176     */ 
    176177    public function dx_plugin_base() { 
    177         include_once( DXP_PATH . '/help-page.php' ); 
     178        include_once( DXP_PATH_INCLUDES . '/base-page-template.php' ); 
    178179    } 
    179180     
     
    258259        $slug = 'pluginbase'; 
    259260        // If this isn't a 'book' post, don't update it. 
    260                 if ( ! isset( $_POST['post_type'] ) || $slug != $_POST['post_type'] ) { 
     261        if ( ! isset( $_POST['post_type'] ) || $slug != $_POST['post_type'] ) { 
    261262            return; 
    262263        } 
  • dx-plugin-base/trunk/inc/dx-sample-widget.class.php

    r1010088 r1227104  
    1414     */ 
    1515    public function __construct() { 
    16         $this->WP_Widget( 
     16        parent::__construct( 
    1717            'dx_sample_widget', 
    1818            __("DX Sample Widget", 'dxbase'), 
  • dx-plugin-base/trunk/readme.txt

    r1010091 r1227104  
    11=== DX Plugin Base === 
    22Contributors: nofearinc, devrix 
    3 Tags: plugin, base, startup, skeleton, stub, foundation, backbone, sample, example 
     3Tags: plugin, base, startup, framework, foundation, skeleton, backbone, starter, sample, example 
    44Requires at least: 3.1 
    5 Tested up to: 4.0 
    6 Stable tag: 1.5 
     5Tested up to: 4.3 
     6Stable tag: 1.6 
    77License: GPLv2 or later 
    88 
     
    1111== Description == 
    1212 
    13 This is a sample skeleton plugin for plugin developers.  
     13This is a fully-functional sample skeleton plugin for plugin developers.  
     14 
     15[youtube https://www.youtube.com/watch?v=FfQpGD_MUbk] 
    1416 
    1517It serves as a startup code providing reference and working codebase for: 
     
    4547Yes, it is, as well as with the latest PHP.  
    4648 
     49I've removed the 'pass-by-reference' call for all array( $this, ... ) entries as it's deprecated since 5.3.0. If you happen to use 5.2.4, you can replace all $this in arrays with &$this or better update PHP version. 
     50 
    4751== Changelog == 
     52 
     53= 1.6 = 
     54* Widget update for PHP compatibility with 4.3 
    4855 
    4956= 1.5 = 
Note: See TracChangeset for help on using the changeset viewer.