Andrew Nacin
a10e14ba57
Add wp_registration_url() and register_url filter.
...
props scribu, JustinSainton, SergeyBiryukov.
fixes #17950 .
git-svn-id: https://develop.svn.wordpress.org/trunk@24053 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 20:21:22 +00:00
Andrew Ozz
2c3a012631
In the HTML outputted from get_search_form(): remove incrementing the IDs for XHTML after the first call, remove the <div> wrapper for HTML5. Props obenland, props bpetty. Fixes #16539
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23916 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-05 00:26:53 +00:00
Andrew Ozz
ec5c661c7d
Heartbeat: improve setting the errorstate, add ajaxurl to the settings object when loading on the front-end, some code cleanup, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23882 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-30 23:32:12 +00:00
Andrew Ozz
e8ff44ba96
In the HTML outputted from get_search_form(): increment the ID connecting <label> to <input> when the function is called multiple times, remove the form and submit button IDs for HTML 5.0 and for XHTML after the first call. Props WraithKenny, fixes #16539
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23801 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 23:18:43 +00:00
Sergey Biryukov
26c02ab51c
Rename 'get_search_form' action to 'pre_get_search_form' to prevent collision with the filter of the same name. Make sure the filtered result is not null to prevent search form from disappearing if an action function is attached to the old hook. fixes #19321 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23800 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 21:08:04 +00:00
Sergey Biryukov
1da02a2270
Use a filter instead of recently added $format argument in get_search_form(). props WraithKenny. fixes #23850 . see #15081 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23798 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 20:27:13 +00:00
Ryan Boren
315f606306
Fire the update_blog_public action from update_blog_status() instead of update_blog_public(). Pass blog ID and value to the action.
...
Add code to noindex() to sync the 'public' value in the site options table with the blog_public value in the options table.
fixes #23155
git-svn-id: https://develop.svn.wordpress.org/trunk@23794 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-25 09:29:58 +00:00
Sergey Biryukov
d8f3366704
Fix placeholder reference in translator comment. props devesine. fixes #23766 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23709 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 16:20:15 +00:00
Sergey Biryukov
317d45f452
Fix array formatting. see #21210 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23668 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 10:30:58 +00:00
Sergey Biryukov
c4c4c09c43
Add $format argument to get_search_form() to allow HTML5 markup. props georgestephanis, lancewillett. fixes #15081 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23667 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 10:25:08 +00:00
Sergey Biryukov
f4a77a66b4
Always respect $echo argument in get_search_form(). props garyc40, kawauso. fixes #16541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23666 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-12 09:51:56 +00:00
Andrew Ozz
d5719ec648
Fix typo in wp_heartbeat_settings, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23482 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 04:19:51 +00:00
Andrew Ozz
9b691a21b0
Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23481 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 02:32:22 +00:00
Ryan Boren
77e5536195
Use microtime() instead of incrementors for last_changed to to avoid race conditions with cache evictions.
...
Props westi
fixes #23448
git-svn-id: https://develop.svn.wordpress.org/trunk@23401 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-11 18:08:14 +00:00
Ryan Boren
51e5049575
In wp_get_archives(), cache queries to individual cache buckets instead of storing them in one cached array. Use incrementor style passive cache invalidation.
...
fixes #23206
see #23173
git-svn-id: https://develop.svn.wordpress.org/trunk@23385 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:54:15 +00:00
Andrew Ozz
5edc6b2711
Heartbeat API: first run, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 06:15:25 +00:00
Ryan Boren
6d8bce688f
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22634 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 15:11:29 +00:00
Andrew Nacin
eecbac5ca5
Consult the queried object for the post type. props mdgl, MikeHansenMe, wonderboymusic. fixes #21648 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22483 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 02:48:15 +00:00
Andrew Nacin
c048b4a3d4
Auto feeds for post type archives. props mgdl, wonderboymusic. fixes #21648 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21984 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 21:21:29 +00:00
Ryan Boren
0c35bf57f6
phpdoc cleanups for general-template.php. Props c3mdigital, SergeyBiryukov. fixes #21893
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21926 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:52:36 +00:00
Andrew Nacin
73dd371cba
Stop outputting the default dir="ltr" in language_attributes(). props bergius. fixes #16852 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21904 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 23:08:46 +00:00
Ryan Boren
31ec698423
Use get_post() instead of global $post.
...
Make the $post argument to get_post() optional, defaulting to the current post in The Loop.
Props nacin
see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21735 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 16:29:28 +00:00
Andrew Nacin
9add97ebf9
Add 'order' to wp_get_archives(). props tar.gz. fixes #18832 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21610 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-24 20:50:22 +00:00
Ryan Boren
de06b81360
Remove return ref from all calls to get_post()
...
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21597 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 20:01:10 +00:00
Andrew Nacin
db981a3b27
Switch to .min for compressed JS and CSS files.
...
* This moves our "development" versions from .dev.js to .js (same for css).
* The compressed version then moves from .js to .min.js (same for css).
By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.
fixes #21633 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
Ryan Boren
fd52f7397d
Move get_current_blog_id() to load.php so it is available during multisite bootstrap. fixes #21432
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21484 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 13:17:14 +00:00
Andrew Ozz
42b696ee44
Fix typo in wp_login_form(), props greenshady, fixes #21514
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21469 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 23:13:31 +00:00
Andrew Ozz
da057a8eb0
TinyMCE: better exclusion of Opera mobile, fixes #21416
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21367 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 19:40:52 +00:00
Andrew Ozz
910d232ac0
TinyMCE: don't load in Opera Mobile as it doesn't support contentEditable yet, fixes #21416
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21361 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-30 00:14:43 +00:00
Andrew Ozz
6e6b727315
Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar).
...
Add tabindex="-1" for the menu images links to avoid double tab stops there when the menu is expanded.
Fix/add auto-focus on the first input fields on the Add/Edit Post, all taxonomy, all edit taxonomy, Log In and Edit Comment screens.
See #21340 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21311 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 00:15:15 +00:00
Mark Jaquith
ebcf49cf93
Bunch of PHPDoc corrections and cleanups. props c3mdigital. props SergeyBiryukov. fixes #21149
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21241 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-09 05:03:53 +00:00
Andrew Ozz
757652fe01
Clarify that 'html' refers to the Text editor tab, see #20993
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21218 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:28:01 +00:00
Ryan Boren
589a54bbee
Update Fire browser detection. Handle silke mode. Props azaozz, nacin, georgestephanis. fixes #20014
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20990 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-04 16:04:54 +00:00
Daryl Koopersmith
955ca76116
Replace all instances of thickbox theme preview with the theme customizer. fixes #20404 .
...
* Use theme customizer in theme install/update screens.
* Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
* Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.
git-svn-id: https://develop.svn.wordpress.org/trunk@20419 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:25:03 +00:00
Andrew Ozz
bce0d37a67
Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20417 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 01:19:30 +00:00
Andrew Nacin
1d7714d923
Check for is_rtl() existence before checking it in the fallback condition in wp_admin_css(). Prevents fatal errors when plugins call wp_admin_css() on a non-existent (probably removed) stylesheet. props SergeyBiryukov, fixes #19913 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20326 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 13:10:52 +00:00
Andrew Nacin
c4f71a65a4
Don't try to load the visual editor for Amazon's Silk browser (Kindle Fire), as it doesn't work. Add in a sunrise clause for WebKit build 534. see #20012 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19936 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 00:21:00 +00:00
Ryan Boren
dc41877dc9
Update color scheme definition for Gray Theme. Props chexee. fixes #17818
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19851 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 17:20:02 +00:00
Ryan Boren
2b186b0c45
Lose EOF ?>. Clean up EOF newlines. fixes #12307
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren
a8d77cbae9
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Ryan Boren
5e76729992
One newline is enough.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Ryan Boren
f1ec82c3a7
Update some @since. Props dgwyer. fixes #19638
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19673 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-04 19:03:33 +00:00
Ryan Boren
676ba7043e
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Ryan Boren
6610e321e7
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19528 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 04:51:35 +00:00
Andrew Ozz
ae2743d972
Changes user_can_richedit() to default to true for logged out users, same as the default for logged in users, fixes #19320
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19432 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 22:49:17 +00:00
Andrew Nacin
fc9bd67e14
Move WP_Editor to a _WP_Editors encapsulation.
...
* WP_Editor will return in 3.4 as a one true API for editor instances. Stick to wp_editor() for now.
* TinyMCE can now be forced on with tinymce = true. It defaults to the value for user_can_richedit().
* Restores wp_default_editor(), wp_link_query(), wp_link_dialog(), wp_fullscreen_html().
fixes #19320 .
git-svn-id: https://develop.svn.wordpress.org/trunk@19420 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 19:06:52 +00:00
Andrew Nacin
3316f10905
Because we can. see #18034 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19406 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 21:27:27 +00:00
Ryan Boren
f9d3ff78c0
Revert [18665]. Causes fatal double include in themes that call get_header() twice. see #18331
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19315 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-16 22:55:59 +00:00
Ryan Boren
80ee709653
Introduce wp_no_robots(). Call it for pages that should never be indexed, regardless of blog privacy settings. Props nacin. fixes #19251
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19304 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 20:44:48 +00:00
Andrew Nacin
668a850007
Use hellip instead of poor man's elipsis in pagination links. props georgestephanis, fixes #19182 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19282 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 21:24:49 +00:00