Plugin Directory

Changeset 1021634


Ignore:
Timestamp:
11/07/2014 05:39:07 PM (11 years ago)
Author:
robmcvey
Message:

Squashed commit of the following:

commit 9945122fd5a72f991796fa2a30464a4454910f32
Author: Rob McVey <robmcvey@…>
Date: Fri Nov 7 17:11:55 2014 +0000

Readme updated

commit c8cb76f17d51228c6afb2091b7945020502f5af9
Author: Rob McVey <robmcvey@…>
Date: Fri Nov 7 17:05:28 2014 +0000

Fixes undefined vars in CopifySettings

commit c59f28d7f5b9e266a236846ff22224f99a84408a
Author: Rob McVey <robmcvey@…>
Date: Fri Nov 7 16:47:56 2014 +0000

Fix mock class names in test

commit 3ea3c53dafaa1e9b7aaa8cdce085bb9abcec9c2e
Author: Rob McVey <robmcvey@…>
Date: Fri Nov 7 16:14:51 2014 +0000

Rename API class

commit 791350302b7f4563b426d72ef8af27c048ece501
Author: Rob McVey <robmcvey@…>
Date: Fri Nov 7 16:02:16 2014 +0000

dont include when calling get_post_thumbnail_id

commit dca556d3a111fc9d5bcb046cada5d0c0d1e28b15
Merge: 7e8e5eb 5b798ee
Author: Rob McVey <robmcvey@…>
Date: Tue Oct 14 15:36:00 2014 +0100

Merge branch 'svn'

commit 7e8e5eb03e5724720dc3700de5094eb9bd237c56
Author: Rob McVey <robmcvey@…>
Date: Fri Oct 10 09:38:24 2014 +0100

tested up to wordpress 4.0

commit a56e5703a6be049c33b8790cf929774fbe0fb001
Merge: 60564f7 d20263a
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:41:27 2014 +0100

Merge branch 'svn'

commit 60564f76003e24271604ced5ee16669752499433
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:36:27 2014 +0100

Version 1.0.8

commit 99e53af0f8e87a3573bc9295b49527c144fe0971
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:32:28 2014 +0100

Use select instead of buttons:

commit cc3feeacafaa64f9588bd71706a78dd18dcc1332
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:23:32 2014 +0100

Cherry pick CSS from chrisgreen1993:issue-5

commit 786898cfcc48bad3a6018580a9f9adbaab911eed
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:22:04 2014 +0100

Cherry pick CopifyViewJob from chrisgreen1993:issue-5

commit 175df54b5715c15d67dcd369223bb114a2493361
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:16:13 2014 +0100

Cherry pick tests from chrisgreen1993:issue-5

commit fb5fe4d4d3da6f5298c1235ce414735f0d041eea
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 13:10:18 2014 +0100

Cherry pick CopifyWordpress.php

from chrisgreen1993:issue-5

commit 970af10896272d99f9e8c6043d182c41f0323ffa
Merge: c16a478 e577d94
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 12:18:07 2014 +0100

Merge branch 'svn'

commit c16a47817e37f64b7100e8604759fe1e017b6937
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 12:15:32 2014 +0100

Remove debugging

commit 540c81822f57c8c39ab0c605fb38f2b6420bd12c
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 11:35:41 2014 +0100

Debug off New version 1.0.7

commit 52850dbcabd2444ccc6aaf284ba0c227fd8cada4
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 11:34:27 2014 +0100

Updating to version 1.0.7

commit a75f4a0d10bab95cc069ec2bb51af16ec5d4312e
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 11:30:40 2014 +0100

Adding test cases for feedback with/without image

commit 54cdd937bd41e5815adb3cd31b485c0cc58dca10
Author: Rob McVey <robmcvey@…>
Date: Thu Oct 9 10:27:39 2014 +0100

Handle author

When we autopublish, we now set an author name. Fix missing order status on order view.

commit 2a76936a3a42550586c12e6e809c58dd72e133a0
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 17:26:35 2014 +0100

Handle images when not autopublish

commit 3d6fe4d0c84b4f821c61085b793bea67056b6ab7
Merge: e7bce64 46609db
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 13:31:11 2014 +0100

Merge branch 'svn'

commit e7bce64bf64a577fda2b6d65f193917ff5977f8b
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 13:28:37 2014 +0100

finishing readme

commit 6d5d4a502a99b8783d71377a557dfbcbfc362a0a
Merge: bc314d4 3a7bb6a
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 13:27:22 2014 +0100

Merge branch 'svn'

commit bc314d4aec1ce5a69eaea06e601943f0cfe06eaf
Merge: b09a9b4 17a8ef7
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 13:24:53 2014 +0100

Merge branch 'svn'

This is a message that should suppress warning on svn

Conflicts:

README.md

commit b09a9b4706b2555787257f0af1ef87db0bcc69dd
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 13:06:22 2014 +0100

test merge

commit a95dd73febcb58b524a4eb8af17caa027495597f
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 13:01:31 2014 +0100

Typos

commit d61e15b9ad5dfdb90b8c55a8aa2e6f56bedb5b93
Merge: 2d20a51 2cbabfc
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 12:57:59 2014 +0100

Merge branch 'svn'

commit 2d20a512614dd25298c80ff15cc9e017a16a533a
Author: Rob McVey <robmcvey@…>
Date: Wed Oct 8 12:37:28 2014 +0100

build

commit 565e449fbc42fb9ade48d1961ea49f43c99cd7c5
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 16:18:38 2014 +0100

Bug fix
Fixes issue with other plugins calling methods in wp-admin/includes/plugin.php such as is_plugin_active()

commit 7e621bd8c4f25885f13c755b426e93bf12ae4e0a
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 13:07:50 2014 +0100

Mention CC licence

commit 64858677e4609af71d91e15132d6c6ff0eaaba40
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 13:05:10 2014 +0100

Changin screenshot text

commit 46d8c267d50ed8b4c0ead60c2a55869d63334172
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 12:26:20 2014 +0100

small readme change regarding screenshots

commit e8f4291f4168be02d0d4c545725d152971e21d97
Merge: b840b4b 7c4909a
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 12:15:00 2014 +0100

Merge branch 'svn'

Conflicts:

basics.php
copify.php

commit 7c4909ae315fc36022ebd3ab1ef7ad070895c835
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 12:13:41 2014 +0100

Conflicts:

basics.php
copify.php

commit b840b4b6b2b6b1acb153c68234a069795f7b3344
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 12:09:31 2014 +0100

Dev mode off

commit 1626166b45590aaebbfb6963d512a5e48e616ec0
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 12:09:06 2014 +0100

Changing screen shots

commit f82289ecb4488f3df8b2aebb458c864fabf3b123
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 10:33:55 2014 +0100

Another readme change

commit 347e6ecef0b0dda422819768865cc3ccdfe8bcf6
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 10:29:52 2014 +0100

README

commit dadbe12687a9caf207a2289adf381892ca0ba560
Merge: a7879d2 42afef3
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 10:26:00 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit 42afef3bd2f3dc95a501113e2725820105ed4f38
Merge: 7466280 e4925c7
Author: Rob McVey <robmcvey@…>
Date: Tue Jul 1 10:09:24 2014 +0100

Merge pull request #9 from copify/flickr

Restructure, tests, adding Flickr functionality

commit a7879d2749faab2b67fbf2f8d1c17e1bae2f3cb3
Author: Rob McVey <robmcvey@…>
Date: Mon Jun 30 14:41:38 2014 +0100

Merging in flickr functionality

commit e4925c77bb737ffc0ee5a60266d2e9687808eaba
Author: Rob McVey <robmcvey@…>
Date: Mon Jun 30 10:47:30 2014 +0100

Coding standards

commit ec51a3ee9c31b2f27ac0c8a72009de6e66bac069
Author: Rob McVey <robmcvey@…>
Date: Fri Jun 27 13:48:56 2014 +0100

fix for version number

commit 7eef1ec123983772513752becc64736e1d3f43f7
Author: Rob McVey <robmcvey@…>
Date: Fri Jun 27 13:36:10 2014 +0100

Version 1.0.5 Flickr Images

commit b527058e390edd57d7e2e5716093b9cca17c5745
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 25 09:38:37 2014 +0100

Typo

commit c7584d64986b4815799fa51dee6921c769774584
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 16:55:13 2014 +0100

Version num

commit 06e2c5199b091e4b3ec0df5e740ac932801c13cc
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 16:43:46 2014 +0100

Styling up attribution link

commit b2b4839ef4974ec8f4ffb8d8f3ab08776482661a
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 16:09:55 2014 +0100

Coding standards

commit 21e2782ec717015241e7b6818809f7f079eba6ad
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 16:09:12 2014 +0100

Adding attribution GET params

commit 513533faaccdebb7ff42d5cfbdcb4595f0f1fbdb
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 15:48:24 2014 +0100

Add atrribution links after content

commit 91300f3e4576bd4bb5c55884b399839a1c83a7ea
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 14:37:59 2014 +0100

Add methods for adding correct CC attribution

commit be91764a30e1749035dde017330e92677fb5c636
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 12:45:49 2014 +0100

Assert CopifyBeforeDeletePost is called

commit 82f4e80e96d78c008ab5879e59642c6eb9b33683
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 12:25:24 2014 +0100

Coding standards

commit ea0f63cba3437ee8146ca3adc520290451ad1ab9
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 12:24:12 2014 +0100

testUnpublishPost

commit 3045044f8e2b8626798e19335eccd3bce7c67db1
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 12:09:38 2014 +0100

testDeleteImage

commit f18f20354c09840c03c623f939e6dc04890abc90
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 11:52:42 2014 +0100

testSetImageMissingParams

commit 13a5b9c61d6e10a6da0fb02e2849300599cfc551
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 11:49:07 2014 +0100

testSetImageMissingParams

commit aea13034d8f031651169ab8d37f64b84d40f3dd0
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 11:44:29 2014 +0100

testSetImageMissingParams

commit 5668f616637ceb9db05cb6685c0656579355cbe9
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 10:47:50 2014 +0100

testCopifySetPostThumbnail removing unused

commit bb44a9e4d69d5d88f6c485978def0bc2d38dbf8e
Author: Rob McVey <robmcvey@…>
Date: Thu Jun 19 10:47:33 2014 +0100

testCopifySetPostThumbnail

commit fc0b4768e80d31a1f148d627f6ecb30a4e022a35
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 14:06:11 2014 +0100

Remove API Tests, coding standards

commit a02f96b59f72ad257a0c57b4dfd80a5a1ec6dc76
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 13:57:21 2014 +0100

testCopifyFlatten

commit 74cd6f8dd30f21699634e66adc205f1a8351fb81
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 13:33:19 2014 +0100

testCopifyAdminMenu

commit 0d83a5203b4b177b21c065a2304864498b31ee7f
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 12:54:00 2014 +0100

testCopifyRequestOrderPublished

commit f36f70b69cc958f23f55e7aaa413475bafee37e3
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 12:44:19 2014 +0100

testCopifyRequestNotComplete

commit 5ad9219cac42193d2ae10b7f51bfe3deeed3521e
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 11:55:37 2014 +0100

testCopifyRequestMissingCopy

commit 82ff0b2c466b14839975c0707b78bc6bab6a5c9f
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 11:23:03 2014 +0100

testCopifyRequestAlreadyPublished

commit d8b4c91a01372fe4d2821fb139f489d6465583e9
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 11:11:34 2014 +0100

testCopifyRequestMissingId

commit f5502849ac790ee9c0fa8d4e60a0a1dbd050cf6d
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 11:05:29 2014 +0100

testCopifyRequestFilterCheckToken

commit 2ce4cdfc8989138622c0fc7bac02481aa5feeac2
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 10:59:37 2014 +0100

testCopifyRequestFilterChe

commit cc7c91ac802a5c29eac766224d520f2ea691a3ea
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 10:58:50 2014 +0100

testCopifyRequestFilterTokenMisMatch

commit fee53fed9d3e2c87ff85dd4627128294a82bd8fe
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 10:53:46 2014 +0100

JSON encode is now in its own function

commit 6fa1be97848a57570cbc358a13953eda9fc42f49
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 10:50:54 2014 +0100

Tests for request action

commit af949f9397d18715a106bb9d9a7d4cc582bdcb48
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 10:20:17 2014 +0100

Tests for settings method

commit a32725c3689aedb79ecc76d03b6110c536ec120c
Author: Rob McVey <robmcvey@…>
Date: Wed Jun 18 09:29:24 2014 +0100

Coding standards

commit cd295785593747ed4a5dd3fbc552d966b354792f
Author: Rob McVey <robmcvey@…>
Date: Tue Jun 17 17:27:05 2014 +0100

Coding standards

commit 2421381d28e722d68579f9401c0511b5935e6ee7
Author: Rob McVey <robmcvey@…>
Date: Tue Jun 17 16:46:41 2014 +0100

Adding tests for testCopifyCssAndScripts

commit 5ed0310e28854b4a155026466f19bcc69cf7c41b
Author: Rob McVey <robmcvey@…>
Date: Tue Jun 17 16:27:12 2014 +0100

Add build status to readme

commit 852754141749041e2aae8ad10d5625addfb51cbf
Author: Rob McVey <robmcvey@…>
Date: Tue Jun 17 16:24:02 2014 +0100

Restructing lib files, adding tests

commit 0850d7a8489e28a52999e68aaa87bc51afae3230
Merge: 363c99c 7466280
Author: Rob McVey <robmcvey@…>
Date: Tue Jun 17 14:09:37 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit 7466280588a40d82c21c4c89ed937be44f3b1431
Author: Rob McVey <robmcvey@…>
Date: Wed May 14 11:49:51 2014 +0100

Use esc_attr() rather than htmlentities() in brief

commit aae02c000dc73ca2fc6391187936d06282e5963b
Author: Rob McVey <robmcvey@…>
Date: Wed May 14 11:46:40 2014 +0100

Use esc_attr() rather than htmlentities()

commit 5083284ea753777182a630727fbae907bba0b392
Merge: 6fee5db 6e8f2f6
Author: Rob McVey <robmcvey@…>
Date: Wed May 7 14:20:20 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit 6e8f2f6a3f5f2e435a6ebd4d0a75c0f6ead5ce84
Merge: fff6a52 60cb22c
Author: Rob McVey <robmcvey@…>
Date: Wed May 7 14:15:25 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit fff6a52e740998b5fbe27bc479876340b0b14c2d
Author: Rob McVey <robmcvey@…>
Date: Wed May 7 13:58:28 2014 +0100

Checking version, base path, ready...

commit eeb9dac42b2321bad5d9fd491e1287662c640c25
Author: Rob McVey <robmcvey@…>
Date: Tue May 6 18:35:18 2014 +0100

Minor change to return JSON when auto publish complete

commit 8bfd7857f735871ca8813722d73e32b8d962def7
Author: Rob McVey <robmcvey@…>
Date: Wed May 7 14:13:43 2014 +0100

Conflicts fixed

commit f14aebb04e4b99a89e7056e323b6301dfa571103
Author: Rob McVey <robmcvey@…>
Date: Wed May 7 14:09:34 2014 +0100

Fixing conflicts

commit 60cb22c114789c7daeb0a89322f792a5d720d266
Author: Rob McVey <robmcvey@…>
Date: Wed May 7 13:58:28 2014 +0100

Checking version, base path, ready...

commit ceda3754eacbf0ef065ceb74fd0f80d5bcc31377
Merge: bea2939 bb8c671
Author: Rob McVey <robmcvey@…>
Date: Tue May 6 18:48:44 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit bb8c671358edaab6136091cc4b148f676a7c9ff3
Merge: 5017f90 c17858b
Author: Rob McVey <robmcvey@…>
Date: Tue May 6 18:37:33 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

Conflicts:

CopifyWordpress.php

commit 5017f90de52609020bd2c282a1db80280b28987a
Author: Rob McVey <robmcvey@…>
Date: Tue May 6 18:35:18 2014 +0100

Minor change to return JSON when auto publish complete

commit c17858bb1f1c1865b6e22b56332a00fd7c2a6d24
Merge: c64b47d 1b01950
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 18:05:18 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

Conflicts:

CopifyWordpress.php

commit c64b47d3ad1bf3297c4929115a2e1e8cc74acf83
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 18:01:51 2014 +0100

Check version requires a token

commit c58f362255e1388db5798adaad8de04aa4ffe2b7
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:57:20 2014 +0100

Meh.

commit 2f15b69ee9042f97c8fa38c2f5ebb2c8b81e6bad
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:56:22 2014 +0100

absolute url

commit 92595fc3bbcf753d7ec03f666543ca9b16691990
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:53:15 2014 +0100

Works?

commit 93816bef78807f2c3167bce4441a23b720d84e85
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:51:26 2014 +0100

Relative img url to assets branch banner

commit 1b019503d8ecbb0d28cb275e2af9501cbd1a7ae4
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:57:20 2014 +0100

Meh.

commit 8e1f5cbb6be8aec9e721ab816353875d4f334a80
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:56:22 2014 +0100

absolute url

commit c3f5a66893422c089a5440c751a4b1da9094c9b6
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:53:15 2014 +0100

Works?

commit 3c3356820d0aaf3fc5bf06e76706601a211b4edb
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:51:26 2014 +0100

Relative img url to assets branch banner

commit c7c22ac726ed499341d69c1527fe9b750b4a9e0d
Merge: f0cd019 6c6afb5
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:44:50 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit f0cd0193b27865fc3a085842d18c55459d5d9b59
Author: Rob McVey <robmcvey@…>
Date: Wed Apr 30 11:44:37 2014 +0100

Allow version check

commit 6c6afb5ac4ea2981b25ce8701e357cf9cc5eeabe
Merge: 733244c 7e456e7
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 15:02:34 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit 7e456e7ded3152de41bfa02abe3f1f570adc2e56
Merge: f98179c ad86c3f
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 15:01:12 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit f98179ca2b5b9b7bf17776be9fd485af032a6926
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 15:00:51 2014 +0100

gizignizzle

commit ad86c3f4f1d8e6b637dfc87b8841aa70f964bb8c
Merge: 1564e22 15fcd29
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 14:56:16 2014 +0100

Merge branch 'master' of github.com:copify/copify-wordpress

commit 1564e2278632dc150a239ef577314474bb5d01c6
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 14:56:02 2014 +0100

Assets moved to seperate branch

commit dfdcb9bbd7762905527fe3b4e8f78271f4ae0905
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 14:09:04 2014 +0100

Removing bold from readme

commit 15fcd29152306f98e67ee516b82a066164df396e
Merge: dffac27 6fa8f80
Author: Rob McVey <robmcvey@…>
Date: Tue Apr 29 12:47:37 2014 +0100

Merge pull request #8 from copify/packages

Adding functionality for auto-publish

Location:
copify/trunk
Files:
5 edited
1 moved

Legend:

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

    r1007319 r1021634  
    77//  Copyright 2012 Rob Mcvey. All rights reserved.
    88//
    9 class Api {
     9class CopifyApi {
    1010   
    1111/**
  • copify/trunk/Lib/CopifyWordpress.php

    r1007319 r1021634  
    8282                $CopifyApiKey = $CopifyLoginDetails['CopifyApiKey'];
    8383                $CopifyLocale = $CopifyLoginDetails['CopifyLocale'];
    84             }
     84            } else {
     85                $CopifyEmail = '';
     86                $CopifyApiKey = '';
     87            }
    8588            // All available locales
    8689            $CopifyAvailableLocales = array(
     
    118121        // Initialise the Copify API helper class
    119122        if (!$this->Api) {
    120             $this->Api = new Api($CopifyLoginDetails['CopifyEmail'], $CopifyLoginDetails['CopifyApiKey']);
     123            $this->Api = new CopifyApi($CopifyLoginDetails['CopifyEmail'], $CopifyLoginDetails['CopifyApiKey']);
    121124        }   
    122125        // Set the correct end point for the API
     
    492495    public function CopifyAddToPosts($job_id, $newPost) {
    493496        // Create the post
    494         $new_wp_id = $this->wordpress('wp_insert_post', $newPost, $wp_error);
     497        $new_wp_id = $this->wordpress('wp_insert_post', $newPost, true);
    495498        // Check for errors
    496499        if ($this->wordpress('is_wp_error', $new_wp_id)) {
     
    10661069 **/
    10671070    protected function _wp_get_attachment_metadata() {
    1068         $attach_id = get_post_thumbnail_id($post->ID);
     1071        $attach_id = get_post_thumbnail_id();
    10691072        return wp_get_attachment_metadata($attach_id);
    10701073    }
  • copify/trunk/Test/Lib/CopifyWordpressTest.php

    r1007319 r1021634  
    11<?php
    22require_once(__DIR__ . '/../../basics.php');
    3 require_once(__DIR__ . '/../../Lib/Api.php');
     3require_once(__DIR__ . '/../../Lib/CopifyApi.php');
    44require_once(__DIR__ . '/../../Lib/CopifyWordpress.php');
    55//
     
    323323    public function testCopifyRequestMissingCopy() {
    324324        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists'));
    325         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     325        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    326326        $mockVal = array(
    327327            'CopifyEmail' => 'foo@bar.com',
     
    369369    public function testCopifyRequestNotComplete() {
    370370        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists'));
    371         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     371        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    372372        $mockVal = array(
    373373            'CopifyEmail' => 'foo@bar.com',
     
    415415    public function testCopifyRequestOrderPublished() {
    416416        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts'));
    417         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     417        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    418418        $mockVal = array(
    419419            'CopifyEmail' => 'foo@bar.com',
     
    535535    public function testCopifyPostFeedbackEmptyPost() {
    536536        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    537         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     537        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    538538        $_POST = null;
    539539        $this->CopifyWordpress->expects($this->never())
     
    555555    public function testCopifyPostFeedbackMain() {
    556556        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    557         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView', 'jobFeedback'), array('foo@bar.com', '324532452345324'));
     557        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView', 'jobFeedback'), array('foo@bar.com', '324532452345324'));
    558558        $_POST = array(
    559559            'type' => 'post',
     
    629629    public function testCopifyPostFeedbackImage() {
    630630        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    631         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView', 'jobFeedback'), array('foo@bar.com', '324532452345324'));
     631        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView', 'jobFeedback'), array('foo@bar.com', '324532452345324'));
    632632        $_POST = array(
    633633            'type' => 'post',
     
    10921092    public function testSetImage() {
    10931093        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1094         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1094        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    10951095        $mockVal = array(
    10961096            'CopifyEmail' => 'foo@bar.com',
     
    11281128    public function testSetImageWithMeta() {
    11291129        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1130         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1130        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    11311131        $mockVal = array(
    11321132            'CopifyEmail' => 'foo@bar.com',
     
    11781178    public function testSetImageMissingParams() {
    11791179        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1180         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1180        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    11811181        $mockVal = array(
    11821182            'CopifyEmail' => 'foo@bar.com',
     
    12091209    public function testDeleteImageMissingParams() {
    12101210        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1211         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1211        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    12121212        $mockVal = array(
    12131213            'CopifyEmail' => 'foo@bar.com',
     
    12371237    public function testDeleteImage() {
    12381238        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1239         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1239        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    12401240        $mockVal = array(
    12411241            'CopifyEmail' => 'foo@bar.com',
     
    12711271    public function testUnpublishPostMissingParams() {
    12721272        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1273         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1273        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    12741274        $mockVal = array(
    12751275            'CopifyEmail' => 'foo@bar.com',
     
    13001300    public function testUnpublishPostFails() {
    13011301        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl'));
    1302         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1302        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    13031303        $mockVal = array(
    13041304            'CopifyEmail' => 'foo@bar.com',
     
    13331333    public function testUnpublishPost() {
    13341334        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts', 'CopifySetPostThumbnailFromUrl', 'CopifyBeforeDeletePost'));
    1335         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1335        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    13361336        $mockVal = array(
    13371337            'CopifyEmail' => 'foo@bar.com',
     
    14771477        $_POST['post_type'] = 'post';
    14781478        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts'));
    1479         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1479        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    14801480        // Job we want to post
    14811481        $job = array(
     
    15311531        $_POST = array();
    15321532        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts'));
    1533         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1533        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    15341534        // Correct response
    15351535        $response = array(
     
    15561556        $_POST['post_type'] = 'hello';
    15571557        $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'CopifySetApiClass', 'CopifyJobIdExists', 'CopifyAddToPosts'));
    1558         $this->CopifyWordpress->Api = $this->getMock('Api', array('jobsView'), array('foo@bar.com', '324532452345324'));
     1558        $this->CopifyWordpress->Api = $this->getMock('CopifyApi', array('jobsView'), array('foo@bar.com', '324532452345324'));
    15591559        // Correct response
    15601560        $response = array(
  • copify/trunk/Views/CopifyViewJob.php

    r1004461 r1021634  
    245245                                    $copify_image_orig = $image_option['source'];
    246246                                }
    247                                 if (!$copify_image_thumb && isset($image_option['width']) && $image_option['width'] > 100 && $image_option['width'] < 600) {
     247                                if (!isset($copify_image_thumb) && isset($image_option['width']) && $image_option['width'] > 100 && $image_option['width'] < 600) {
    248248                                    $copify_image_thumb = $image_option['source'];
    249249                                }
  • copify/trunk/copify.php

    r1007319 r1021634  
    2626require_once('basics.php');
    2727require_once(ABSPATH . 'wp-admin/includes/plugin.php');
    28 require_once(COPIFY_PATH . COPIFY_DS . 'Lib/Api.php');
     28require_once(COPIFY_PATH . COPIFY_DS . 'Lib/CopifyApi.php');
    2929require_once(COPIFY_PATH . COPIFY_DS . 'Lib/CopifyWordpress.php');
    3030
  • copify/trunk/readme.txt

    r1007319 r1021634  
    3939== Changelog ==
    4040
     41= 1.0.9 =
     42* Fixes undefined var in CopifyAddToPosts
     43* Fixes undefined var in CopifyViewJob
     44* Fix missing $post variable in _wp_get_attachment_metadata
     45* Fixes undefined vars in CopifySettings
     46
    4147= 1.0.8 =
    4248* When moving an already approved order to drafts, offer selection of "Post" or "Page"
Note: See TracChangeset for help on using the changeset viewer.