Plugin Directory

Changeset 1567080


Ignore:
Timestamp:
01/03/2017 12:22:19 PM (9 years ago)
Author:
robmcvey
Message:

Squashed commit, new release 1.2.2

Location:
copify/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • copify/trunk/Lib/CopifyWordpress.php

    r1440064 r1567080  
    1212 * Plugin version
    1313 */
    14     protected $version = '1.2.1';
     14    protected $version = '1.2.2';
    1515
    1616/**
     
    11121112 **/
    11131113    protected function outputJson($json) {
     1114        $this->setheader("Content-Type: application/json");
    11141115        echo json_encode($json);
    11151116        die();
  • copify/trunk/README.md

    r1440060 r1567080  
    3535```
    3636
    37 Make changes and commit as usual using `git commit`, then diffs and new versions can be pushed to SVN with;
     37Once setup, we use `--squash` to keep things in single commits. E.g. workflow;
     38
     39```bash
     40git checkout -b bugfix
     41# new changes
     42git commit -a
     43git checkout master
     44git merge --squash bugfix
     45```
     46
     47Then, we can use the `dcommit` option to sync back to WordPress's SVN repo.
    3848
    3949```bash
  • copify/trunk/Test/Lib/CopifyWordpressTest.php

    r1440060 r1567080  
    305305        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader'));
    306306        $version = $this->CopifyWordpress->getVersion();
    307         $this->assertEquals('1.2.1', $version);
     307        $this->assertEquals('1.2.2', $version);
    308308        $mockVal = array(
    309309            'CopifyEmail' => 'foo@bar.com',
  • copify/trunk/Views/CopifySettings.php

    r1440060 r1567080  
    3636            <label for="CopifyEmail">Email</label>
    3737            <div class="input">
    38                 <input name="CopifyEmail" value="<?php echo $CopifyEmail; ?>" class="CopifyEmail" type="text" maxLength="100" />
     38                <input name="CopifyEmail" value="<?php echo $CopifyEmail; ?>" class="CopifyEmail" type="email" maxLength="100" />
    3939            </div>
    4040
    4141            <label for="CopifyApiKey">API Key</label>
    4242            <div class="input">
    43                 <input name="CopifyApiKey" style="width:300px;" value="<?php echo $CopifyApiKey; ?>" class="CopifyApiKey" type="text" maxLength="40" />
     43                <input name="CopifyApiKey" style="width:300px;" value="<?php echo $CopifyApiKey; ?>" class="CopifyApiKey" id="ApiKeyInput" type="text" maxLength="40" />
    4444            </div>
    4545
     
    8080
    8181</div>
     82
     83
     84<script type="text/javascript">
     85    jQuery(document).ready(function() {
     86        // Removes whitespace from start and end of email field
     87        jQuery('input[type=email]').blur(function() {
     88            input = jQuery.trim(jQuery(this).val());
     89            jQuery(this).val(input);
     90            // Force the field to refresh as Chrome can't seem to do it by itself
     91            jQuery(this).addClass('chr_refresh').removeClass('chr_refresh');
     92        });
     93        // Removes whitespace from start and end of API key field
     94        jQuery('#ApiKeyInput').blur(function() {
     95            input = jQuery.trim(jQuery(this).val());
     96            jQuery(this).val(input);
     97            // Force the field to refresh as Chrome can't seem to do it by itself
     98            jQuery(this).addClass('chr_refresh').removeClass('chr_refresh');
     99        });
     100    });
     101</script>
  • copify/trunk/copify.php

    r1440060 r1567080  
    44Plugin URI: https://github.com/copify/copify-wordpress
    55Description: Automatically publish unique, relevant content every week from Copify's team of professional writers.
    6 Version: 1.2.1
     6Version: 1.2.2
    77Author: Rob McVey
    88Author URI: http://uk.copify.com/
  • copify/trunk/readme.txt

    r1440064 r1567080  
    11=== Copify ===
    22
    3 Version: 1.2.1
     3Version: 1.2.2
    44Contributors: robmcvey
    55Tags: blog writers, automatic blogging, post writers, auto blogging, content, copywriting, copywriters, blogging, writers, writing, seo
    66Requires at least: 3.2.0
    7 Tested up to: 4.5.0
     7Tested up to: 4.7.0
    88Stable tag: trunk
    99Github Stable tag: master
     
    3939
    4040== Changelog ==
     41
     42= 1.2.2 =
     43* Add application/json header in responses
     44* Tested up to WordPress 4.7
    4145
    4246= 1.2.1 =
Note: See TracChangeset for help on using the changeset viewer.