Note to devs: trunk is broken and it’s going to be for some days. Use tags/3.0 if you want something stable
Updates from Jorge Bernal RSS Toggle Comment Threads | Keyboard Shortcuts
-
Jorge Bernal
-
Jorge Bernal
Changes in XML-RPC for 3.4. I think that’s all, or at least everything that could be relevant for the mobile apps
At r20403:
New methods:
- ‘wp.newPost’
- ‘wp.editPost’
- ‘wp.deletePost’
- ‘wp.getPost’
- ‘wp.getPosts’
- ‘wp.newTerm’
- ‘wp.editTerm’
- ‘wp.deleteTerm’
- ‘wp.getTerm’
- ‘wp.getTerms’
- ‘wp.getTaxonomy’
- ‘wp.getTaxonomies’
- ‘wp.getPostType’
- ‘wp.getPostTypes’
Additions to wp.getOptions:
- image_default_link_type
- image_default_size
- image_default_align
- template
- stylesheet
- featured_image
- default_comment_status
- default_ping_status
Bugfixes:
- New date functions to avoid invalid dates
- metaWeblog.newPost verifies that wp_author_id is valid
- metaWeblog.newPost supports wp_featured_image
- metaWeblog.editPost permission checks refactored
- metaWeblog.editPost supports wp_page_template for pages
- metaWeblog.editPost supports wp_featured_image
- metaWeblog.getPost (and getRecentPosts) returns last modified dates and featured images
- metaWeblog.newMediaObject also returns attachment id
-
Jorge Bernal
I created the Next Release report on trac, priorities are:
- Blocker: major features for the release
- Critical: anything that worked before adding new features and it’s broken now
- Major: generic bugs
- Minor, trivial: enhancements that would be nice to include in the release if there’s time
Not everything is in the right priority yet, but I think it’s a good way to sort priorities
-
Judy
Im a PM who teaches web deign and dev, and has gotten into iOS. I would like to get involved. This would be my very first opensource participation, and if there is a proper protocol – I hope I havent just violated it by just replying to this post. If anyone can spare a little time to write me and point me in the right direction, I hope to make it up to you in contributions.
-
Jorge Bernal
Hi, great to hear that.
We use to hang out on the #wordpress-mobile channel on freenode.
You could look at the tickets for the next version or all the open tickets. Or just find something you’d like to improve and create a new ticket.Help with the forums is always welcome too
-
-
Usain
Please add a feature to set a featured image, I miss that feature so hard and I know I’m not the only one.
Keep up the good work!-
Jorge Bernal
Support for featured images has been added recently to the API for WordPress 3.4, it wasn’t possible until now. We’re working on bringing that to a next version of WordPress for iOS
-
Usain
Awesome you made my day
-
-
-
Jorge Bernal
Early reports show a higher than usual number of crashes on WPiOS 2.9.4.
It looks like there are 2 new bugs. At least one of them looks like an easy fix
I’ll try to get them fixed early next week and submit a 2.9.5 with just the bugfixes
-
Isaac Keyet
Can you put together the milestone with the bug fixes so we can refer to them and track progress?
-
Jorge Bernal
Sure. I’m still trying to figure out what’s happening so I can at least put a relevant description in the tickets
At least I can consistently reproduce one of them
-
-
Jorge Bernal
-
Michael de Groot
Jorge, I can confirm that after the iOS update my app crashes instantly when I try to open my blog. Looking forward to the fix. Many thanks and keep up the gat work. Thanks
-
Jorge Bernal
That doesn’t sound like one of the crashes fixed, did you submit a crash report?
If you’re not getting the crash report prompt from the app, see if you can find them using this method: http://aplus.rs/apple/how-to-find-crash-logs-for-iphone-applications-on-mac-vista-and-xp/
-
-
-
Jorge Bernal
In [2382]: Enabled GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS so we get a bunch new warnings if we’re using deprecated methods. Autocompletion usually helps to avoid it when writing new code, but we should review the old code. 19 warnings only
-
Jorge Bernal
I plan to write some coding guidelines for iOS extending what’s here (not much, I know), but one thing I need to warn right now, just in case:
If you add any external libraries, don’t modify them.
That said, if you need to change them to fit our app:
- Make it generic enough to be accepted by the original developer, if it fixes a general problem
- Try creating a subclass, or find other workaround, if it’s too specific to our app
- If you absolutely must modify the library, at least commit a clean copy of it to svn, then apply your changes and commit. This way we can have a diff of what we’ve modified and update the library easily in the future
This came from trying to update the XMLRPC library. Our version was really old, the first version committed to our svn already had modifications, in all this time they moved from svn to git losing the history. There was no sane way to figure out what our changes were compared to the original version to port them over the latest version, so I had to take a guess (only picked the changes after it was added to svn)
-
Jorge Bernal
I also plan next week to move all the libraries to a Vendor directory, so it’s easier to differentiate our code from third party. Since we can’t have git externals/submodules in svn, I was planning to just store a list of libraries in a text file. Something like this:
AFNetworking Source: https://github.com/koke/AFNetworking Version: 049fef588818e29e92128a08ae835aad3a33103b XMLRPC Source: https://github.com/eczarny/xmlrpc ...
I’ve been looking at dependency management for Objective-C like CocoaPods and VendorKit, but I’m not sold on any of those yet.
-
Dan
Speaking of external libraries, AFNetworking has a bunch of example code in it. We should remove that at some point.
-
Jorge Bernal
Not 100% happy about it, but it goes to the “don’t modify”. Since we can’t have them as externals/submodules, I tried to keep the files the same as upstream, and add only what we need in the Xcode project.
-
-
Jorge Bernal
Feature request from twitter: better support for finding/editing old posts:
@WordPressiOS I'm requesting a feature: The ability to search or better options to go through history of blog posts. I got 1000+ posts.—
(@XVerse10) December 16, 2011@WordPressiOS I got 1000+ post it takes me forever to get to a post to edit from earlier this year.—
(@XVerse10) December 16, 2011@WordPressiOS When you do get to it. It doesn't save your position meaning to get back to it I have to start scrolling all over again.—
(@XVerse10) December 16, 2011First we’d need support on the XML-RPC api. In theory,
metaWeblog.getRecentPostssupports everything that WP_Query supports, but I can’t find search on the documentation.But even then, how do we decide what to keep? Most of the users will only care about the latest posts if anything, and keeping 1K posts in the app would add disk space, and possibly slow down the app.
-
X-Money
Why you can’t use the same or similar API that Apple use in the Mail app? Everyone has a search or category API for iOS. Amazon, Google, EBay. You gotta reverse engineer their app. If you can make WP search and editing of posts like Apple Mail that will be awesome.
-
Jorge Bernal
Well, the API that mail uses (IMAP) is for mail servers. Adding a search box to the app interface is relatively easy, the problem is asking your WordPress site to search. As far as I know, there’s no API for that yet.
That doesn’t mean it’s impossible, but we’d have to wait until WordPress 3.4 (at least) to be able to make it.
Anyway, what’s the typical case that makes you go so often to old posts?
Do you get a comment on an old post and correct something? Do you search for old posts as a template for new posts?
-
-
Darnell Clayton
Meh! I hate to say it, but I see this as (more or less) an unnecessary feature that you need to say no to (at least right now).
If users need to edit a post, then why not enable it on the mobile web side, allowing them to log in, search, etc. and edit from there? (also is there a plugin for that?)
Adding this feature would indeed slow the WordPress app down, and it’s better to wait for an API. To paraphrase Steve Jobs, “learn to say no to feature requests.”
-
Manuel Rubio
I believe that WordPress release 2.9.3 has been well and you must have well-taken care of with the modifications so that it does not happen like with version 2.9.2
-
-
Jorge Bernal
I’ve seen some crash reports on iOS5 with the following error:
‘NSInvalidArgumentException’, reason: ‘Cannot set metadata in read-only store.’
Looking at this thread and the dev forums, it seems like an Apple bug, but one user said:
My beta testers reported that syncing with iTunes seems to clear this error up- so my guess is that iTunes sync is fixing a permissions problem.
Let’s hope they’ll fix that in a next release, since it’s about 20% of the crashes for 2.9.1 right now
-
Jorge Bernal
I just emptied the 3.0 milestone on trac so we can start fresh.
I’ll start working on the roadmap next week, and everything should have it’s own ticket so we can easily keep track of the changes and progress.
-
Jorge Bernal
Crash Report status for 2.9.1:
- Fixed freeze when picking photo from library [2239]
- Fixed crashes on iOS 4.0 [8.58% of crashes] [2236]
- Maybe fixed crash when memory warning issued while adding/selecting categories [4% of crashes] [2240]
- Try to avoid crash on weird cases when picking a photo [2.47% of crashes]. Can’t reproduce, but I’ve tried to make it not crash on unexpected values [2241]
Unsolved crashes:
- There’s a Safari bug on iOS 4.0 which makes WebCore crash [5.29% of crashes]. New version of the reader in 2.9.1 will at least not make it happen when users are somewhere else in the app, but will still crash when loading the articles that trigger that bug. That would also help pinpoint what the bug actually is
- The crash on ojbc_msgSend [4.47% of crashes]. We’ve had this one for a long time, and happens in very random places. At least users are now giving more details of what they were doing when app crashed. Cleanup and NSOperation in 3.0 will probably help getting rid of this one
- NSObjectInaccessibleException [3.17% of crashes]. In some edge cases, the app tries to show a comment which has been deleted (or marked as spam). It looks like it happens when the app was in the background and just launched opening a comment.
- The “Deallocation Problem” (more info) [2.59% of crashes]. Nasty bug which happens when a UIViewController does something on the background and gets released before the background thread is finished. That causes dealloc to be called from a background thread which is fatal when you have a UIWebView. Let’s move to NSOperation and stay away from performSelector* on 3.0
-
Jorge Bernal
Also, there’s a “crash” for some users when opening the comments tab while posts are still loading
@WordPressiOS My app usually works great, but the past few weeks it crashes any time I go on to the Comments tab. Help?!—
Alece Ronzino (@gritandglory) October 05, 2011I saw it happen live on WordCamp Lisbon, but it didn’t leave any kind of crash log. When user went to visit and refresh a different blog, it was suddenly fixed.
-
Stefan
What’s about Custom-Post-Type function in the App? Would that function coming with that new version or with v3.0 of the app?
-
Jorge Bernal
Probably not going to make it for 3.0, although we want to support them somehow in the future
-
Thanks for gathering this! Be sure to watch #20396 to see if/when the name for featured_image changes.