Removing outdated submodule
This commit is contained in:
parent
bdde5e6723
commit
6faeb8f1a4
3 changed files with 18 additions and 11 deletions
|
@ -2,8 +2,8 @@
|
||||||
Contributors: randyjensen,randyhoyt
|
Contributors: randyjensen,randyhoyt
|
||||||
Tags: openphoto,media
|
Tags: openphoto,media
|
||||||
Requires at least: 3.2
|
Requires at least: 3.2
|
||||||
Tested up to: 3.3
|
Tested up to: 3.5
|
||||||
Stable tag: 0.9.4.2
|
Stable tag: %VERSION_NUMBER%
|
||||||
|
|
||||||
Insert photos from your OpenPhoto installation into your WordPress content through the media manager.
|
Insert photos from your OpenPhoto installation into your WordPress content through the media manager.
|
||||||
|
|
||||||
|
@ -26,6 +26,9 @@ Find the project on [GitHub](https://github.com/openphoto/openphoto-wordpress "O
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 0.9.5 =
|
||||||
|
* Fix for WordPress 3.5
|
||||||
|
|
||||||
= 0.9.4.2 =
|
= 0.9.4.2 =
|
||||||
* Reverting parameter name to "generate"
|
* Reverting parameter name to "generate"
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit eaa6be4f813e016bf8cb3e3cac0df8b4cda4861a
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
Plugin Name: OpenPhoto for WordPress
|
Plugin Name: OpenPhoto for WordPress
|
||||||
Version: 0.9.4.2
|
Version: %VERSION_NUMBER%
|
||||||
Plugin URI: https://github.com/openphoto/openphoto-wordpress
|
Plugin URI: https://github.com/openphoto/openphoto-wordpress
|
||||||
Author: Randy Hoyt, Randy Jensen
|
Author: Randy Hoyt, Randy Jensen
|
||||||
Author URI: http://cultivatr.com/
|
Author URI: http://amesburyweb.com/
|
||||||
Description: Connects a WordPress installation to an OpenPhoto installation.
|
Description: Connects a WordPress installation to an OpenPhoto installation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -30,7 +30,12 @@ class WP_OpenPhoto {
|
||||||
}
|
}
|
||||||
|
|
||||||
function media_render_openphoto_tab() {
|
function media_render_openphoto_tab() {
|
||||||
|
|
||||||
|
if ( $wp_version >= 3.5 ) {
|
||||||
|
// do nothing
|
||||||
|
} else {
|
||||||
media_upload_header();
|
media_upload_header();
|
||||||
|
}
|
||||||
|
|
||||||
$post_id = intval($_REQUEST['post_id']);
|
$post_id = intval($_REQUEST['post_id']);
|
||||||
$m = trim($_REQUEST['m']);
|
$m = trim($_REQUEST['m']);
|
||||||
|
@ -77,11 +82,11 @@ class WP_OpenPhoto {
|
||||||
caption_text = parent_el.find('.caption-text').val();
|
caption_text = parent_el.find('.caption-text').val();
|
||||||
caption_text.replace(/'/g, ''').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>');
|
caption_text.replace(/'/g, ''').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>');
|
||||||
url_text = parent_el.find('.url-text').val();
|
url_text = parent_el.find('.url-text').val();
|
||||||
alignment = parent_el.find('.alignment-area input[type="radio"]]:checked').val();
|
alignment = parent_el.find('.alignment-area input[type="radio"]:checked').val();
|
||||||
size = parent_el.find('.size-area input[type="radio"]]:checked').val();
|
size = parent_el.find('.size-area input[type="radio"]:checked').val();
|
||||||
size_height = parent_el.find('.size-area input[type="radio"]]:checked').attr('data-image-height');
|
size_height = parent_el.find('.size-area input[type="radio"]:checked').attr('data-image-height');
|
||||||
size_width = parent_el.find('.size-area input[type="radio"]]:checked').attr('data-image-width');
|
size_width = parent_el.find('.size-area input[type="radio"]:checked').attr('data-image-width');
|
||||||
size_alt = parent_el.find('.size-area input[type="radio"]]:checked').attr('alt');
|
size_alt = parent_el.find('.size-area input[type="radio"]:checked').attr('alt');
|
||||||
size_class = 'size-' + size;
|
size_class = 'size-' + size;
|
||||||
height = size_height;
|
height = size_height;
|
||||||
width = size_width;
|
width = size_width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue