Changeset 1567080
- Timestamp:
- 01/03/2017 12:22:19 PM (9 years ago)
- Location:
- copify/trunk
- Files:
-
- 6 edited
-
Lib/CopifyWordpress.php (modified) (2 diffs)
-
README.md (modified) (1 diff)
-
Test/Lib/CopifyWordpressTest.php (modified) (1 diff)
-
Views/CopifySettings.php (modified) (2 diffs)
-
copify.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
copify/trunk/Lib/CopifyWordpress.php
r1440064 r1567080 12 12 * Plugin version 13 13 */ 14 protected $version = '1.2. 1';14 protected $version = '1.2.2'; 15 15 16 16 /** … … 1112 1112 **/ 1113 1113 protected function outputJson($json) { 1114 $this->setheader("Content-Type: application/json"); 1114 1115 echo json_encode($json); 1115 1116 die(); -
copify/trunk/README.md
r1440060 r1567080 35 35 ``` 36 36 37 Make changes and commit as usual using `git commit`, then diffs and new versions can be pushed to SVN with; 37 Once setup, we use `--squash` to keep things in single commits. E.g. workflow; 38 39 ```bash 40 git checkout -b bugfix 41 # new changes 42 git commit -a 43 git checkout master 44 git merge --squash bugfix 45 ``` 46 47 Then, we can use the `dcommit` option to sync back to WordPress's SVN repo. 38 48 39 49 ```bash -
copify/trunk/Test/Lib/CopifyWordpressTest.php
r1440060 r1567080 305 305 $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader')); 306 306 $version = $this->CopifyWordpress->getVersion(); 307 $this->assertEquals('1.2. 1', $version);307 $this->assertEquals('1.2.2', $version); 308 308 $mockVal = array( 309 309 'CopifyEmail' => 'foo@bar.com', -
copify/trunk/Views/CopifySettings.php
r1440060 r1567080 36 36 <label for="CopifyEmail">Email</label> 37 37 <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" /> 39 39 </div> 40 40 41 41 <label for="CopifyApiKey">API Key</label> 42 42 <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" /> 44 44 </div> 45 45 … … 80 80 81 81 </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 4 4 Plugin URI: https://github.com/copify/copify-wordpress 5 5 Description: Automatically publish unique, relevant content every week from Copify's team of professional writers. 6 Version: 1.2. 16 Version: 1.2.2 7 7 Author: Rob McVey 8 8 Author URI: http://uk.copify.com/ -
copify/trunk/readme.txt
r1440064 r1567080 1 1 === Copify === 2 2 3 Version: 1.2. 13 Version: 1.2.2 4 4 Contributors: robmcvey 5 5 Tags: blog writers, automatic blogging, post writers, auto blogging, content, copywriting, copywriters, blogging, writers, writing, seo 6 6 Requires at least: 3.2.0 7 Tested up to: 4. 5.07 Tested up to: 4.7.0 8 8 Stable tag: trunk 9 9 Github Stable tag: master … … 39 39 40 40 == Changelog == 41 42 = 1.2.2 = 43 * Add application/json header in responses 44 * Tested up to WordPress 4.7 41 45 42 46 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.