Plugin Directory

Changeset 621307


Ignore:
Timestamp:
11/05/2012 04:14:24 PM (13 years ago)
Author:
convissor
Message:

Clarify descriptions and instructions.

Location:
oop-plugin-template-solution/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oop-plugin-template-solution/trunk/oop-plugin-template-solution.php

    r621289 r621307  
    44 * Plugin Name: Object Oriented Plugin Template Solution
    55 *
    6  * Description: A well engineered template for creating new plugins using
     6 * Description: A well engineered template for creating plugins using
    77 * object-oriented programming practices.
    88 *
    99 * Plugin URI: http://wordpress.org/extend/plugins/oop-plugin-template-solution/
    10  * Version: 1.0.0
     10 * Version: 1.0.1
    1111 *         (Remember to change the VERSION constant, below, as well!)
    1212 * Author: Daniel Convissor
     
    5050     * This plugin's version
    5151     */
    52     const VERSION = '1.0.0';
     52    const VERSION = '1.0.1';
    5353
    5454    /**
  • oop-plugin-template-solution/trunk/readme.txt

    r621289 r621307  
    1212== Description ==
    1313
    14 This gives authors of new plugins a leg up on creating a great, easy to
     14Gives authors of new plugins a leg up on creating a great, easy to
    1515maintain plugin by providing a carefully designed plugin skeleton to build on.
    1616Authors of existing plugins can extract individual components and concepts
    17 and transplant them into their projects.
     17for transplantation into their own projects.
    1818
    1919* Clean, object-oriented design
     
    5454    of "My Plugin" in the settings section with the name of your plugin.
    5555
    56         # Settings...
     56        # Settings -----
    5757        # Plugin identifier / directory (hyphen separated).
    5858        old_id=oop-plugin-template-solution
     
    6666        old_name="Object Oriented Plugin Template Solution"
    6767        new_name="My Plugin"
     68        # --------------
    6869
    6970
    70         # Now do the replacements...
     71        # Copy and rename the files.
    7172        cp -R $old_id $new_id
    7273        cd $new_id
    7374        mv $old_id.php $new_id.php
     75
     76        # Replace strings in the files.
    7477        find . -type f -exec sed "s/$old_id/$new_id/g" -i {} \;
    7578        find . -type f -exec sed "s/$old_class/$new_class/g" -i {} \;
     
    133136classes:
    134137
    135 * The only file each test script needs obtain is done by a `require_once`
    136   call for `TestCase.php`.  That obtains the PHPUnit and other items needed.
     138* Have a `require_once` call for `TestCase.php` at the top of the script.
     139  That obtains the PHPUnit and other items needed.  It's the only file you
     140  need to include.
    137141* Classes must extend `TestCase`
    138142* If you add a `setUpBeforeClass()` method, it must
    139143  call `parent::setUpBeforeClass()`
    140144* If you add a `setUp()` method, it must call `parent::setUp()`
     145* If you add a `tearDown()` method, it must call `parent::tearDown()`
     146* If you add a `tearDownAfterClass()` method, it must
     147  call `parent::tearDownAfterClass()`
    141148
    142149Take a look at the `TestLogin.php` script for examples of how to handle
     
    179186== Changelog ==
    180187
     188= 1.0.1 (2012-11-05) =
     189* Clarify instructions and descriptions.
     190
    181191= 1.0.0 (2012-11-05) =
    182192* Initial release.
Note: See TracChangeset for help on using the changeset viewer.