Questions tagged [wordpress-3.5]

WordPress is a PHP-based, open source content management system for creating websites and blogs. This tag is for programming-specific questions referring to version 3.5 ("Elvin").

Wordpress 3.5

Wordpress 3.5 was released in December 2012. Some of its feature highlights are:

  • New media manager
  • New default theme
  • Admin enhancements

For Developers:

  • WP_Comment_Query and WP_User_Query now accept meta queries
  • Post objects are now instances of a WP_Post class, which improves performance and caching
  • Multisite's switch_to_blog() is now significantly faster and more reliable
  • Image Editing API for cropping, scaling, etc., that uses ImageMagick as well as GD

Resources

34 questions
70
votes
5 answers

WordPress 3.5 custom media upload for your theme options

WordPress 3.5 has been released recently, I used the WordPress Media Upload system via thickbox and window.send_to_editor for some options in my WordPress theme (backgrounds, logos etc...). But as you know WordPress has integrated a new Media…
Mattpx
  • 721
  • 1
  • 6
  • 8
9
votes
1 answer

wordpress 3.5 media manager - add my own backbone.js views

I am currently trying to utilize the new WordPress 3.5 media manager which uses backbone.js to create and populate its modal window. What I want to do is: a user clicks upload button, media manager pops up, user selects image, presses insert, image…
Kriesi
  • 141
  • 1
  • 9
7
votes
5 answers

How to run some code as soon as new image gets uploaded in WordPress 3.5 uploader

I need to run some code as soon as new images get uploaded in WordPress 3.5 uploader. Here is the code of wp-includes/js/media-views.js (line 529-540) uploading: function( attachment ) { var content = this.frame.content; // If…
Alvin
  • 125
  • 2
  • 8
6
votes
1 answer

Should we still use the media_upload_tabs filter to add tabs in the Media Manager after WordPress 3.5?

Since WordPress 3.5, the old media manager filter (media_upload_tabs) is still working, however the UI has moved away from the ThickBox used before. I haven't been able to find any information that suggests a new approach to add tabs and I wonder if…
Jenny
  • 1,729
  • 4
  • 19
  • 37
5
votes
1 answer

Json encoding strings with spaces

I'm working on a metabox class for wordpress, and specifically implementing the Media Uploading introduced in 3.5. To pass options between the metabox class and the media uploader I like to use json. The basic data structure I have is below…
noponies
  • 2,626
  • 2
  • 18
  • 15
4
votes
5 answers

Wordpress: An error occurred in the upload

After updating to WordPress 3.5, I started getting the following error when uploading files using the Add Media button as a non-admin user: Error: An error occurred in the upload. Please try again later. The image seems to finish uploading, but…
HWD
  • 1,547
  • 7
  • 36
  • 72
4
votes
1 answer

How to use WordPress 3.5 media manager gallery tool for my own plugin

In the WordPress 3.5 media manager under the "Create Gallery" tab, users can choose multiple images and then have the ability to reorder images in a second page. When done, it inserts a shortcode such as: [gallery ids="895,1007,986"] I would like to…
ambiguousmouse
  • 1,983
  • 3
  • 22
  • 27
4
votes
2 answers

WordPress 3.5 Media Manager: Is there a "good" way to add an additional select option within Create Gallery tab?

By good, I mean using hooks/filters. Basically, by default the two options are Images and Uploaded to this page. I would like to add an additional option in there. I know how to add a new tab to the media manager (see here), but that doesn't achieve…
Dan
  • 3,246
  • 1
  • 32
  • 52
3
votes
3 answers

Styles not applying to some elements, Gallery Disappears in TinyMCE, WP 3.5

I'm noticing a strange bug in Chromium/Chrome, when after some edits one or more gallery placeholders (the camera and picture in WP3.5) disappear. In one case, I have one placeholder that displays, and the one above doesn't, inspector shows that one…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
3
votes
1 answer

Prevent authors from seeing other authors media files in media upload dialog in Wordpress 3.5 and with ACF

I've been struggling with this problem for a good while now, and just can't seem to get it work. I have a multiuser wordpress 3.5 site with Advanced Custom Fields plugin. a custom post type, gallery, in which authors can post their photos through…
hlotvonen
  • 119
  • 1
  • 3
  • 10
3
votes
4 answers

Calling wp_enqueue_media() in a custom theme widget on WordPress 3.5.x cause js error

I am writing a custom widget for my own WordPress theme. From WordPress 3.5 there is a new Media Uploader instead of the old ThickBox. My widget used to work fine on WordPress versions older than 3.5, but now the new media uploader prevent the old…
Simone Conti
  • 306
  • 4
  • 9
3
votes
2 answers

Wordpress 3.5: own gallery with included images doesn't work

I just updated to Wordpress 3.5, but this crashed a little part of my code: There is a php file, which loads a specific post with its gallery via AJAX. The code looks like:
Slevin
  • 4,268
  • 12
  • 40
  • 90
2
votes
2 answers

Single Page Wordpress Template

I have to convert the following HTML website into a Theme for Wordpress. I am trying to figure out how to structure the theme in terms of pages/posts/custom modules and themes. I have 5 sections in my page Home (Slider and content) Know (tabs with…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
2
votes
2 answers

wp_register_script with protocol agnostic source parameter

In this WordPress function to register a script wp_register_script can be used, to load external scripts, the follow format: wp_register_script('my_jQuery', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'); As appears in documentation…
leticia
  • 2,390
  • 5
  • 30
  • 41
2
votes
4 answers

How to get selection from Wordpress 3.5 media uploader

I am trying to get the selection from a default instance of the new media uploader... I am happy with the way it displays by default so I am NOT using:- file_frame = wp.media.frames.file_frame = wp.media( { title: 'Select File', button: { …
David O'Sullivan
  • 2,969
  • 4
  • 21
  • 24
1
2 3