diff --git a/wp-admin/comment.php b/wp-admin/comment.php
index 31c9de60d3..44be50a869 100644
--- a/wp-admin/comment.php
+++ b/wp-admin/comment.php
@@ -249,7 +249,7 @@ case 'unapprovecomment' :
wp_set_comment_status( $comment_id, 'hold' );
$redir = add_query_arg( array( 'unapproved' => 1 ), $redir );
break;
- }
+ }
wp_redirect( $redir );
die;
diff --git a/wp-admin/css/custom-navigation.dev.css b/wp-admin/css/custom-navigation.dev.css
index 9f2060cf4c..1510e8a0fe 100644
--- a/wp-admin/css/custom-navigation.dev.css
+++ b/wp-admin/css/custom-navigation.dev.css
@@ -8,7 +8,7 @@
* @package WordPress
* @subpackage Administration
*/
-
+
.fix{clear: both;height: 1px;margin: -1px 0 0;overflow: hidden;}
#no-js {display:block;}
diff --git a/wp-admin/custom-navigation.php b/wp-admin/custom-navigation.php
index 361d500663..93f1577cf8 100644
--- a/wp-admin/custom-navigation.php
+++ b/wp-admin/custom-navigation.php
@@ -9,7 +9,7 @@
* @package WordPress
* @subpackage Administration
*/
-
+
require_once('admin.php');
wp_admin_css( 'custom-navigation' );
@@ -28,9 +28,9 @@ wp_custom_navigation();
function wp_custom_nav_reset() {
wp_custom_navigation_setup(true);
-
+
return true;
-
+
}
@@ -46,20 +46,20 @@ function wp_custom_navigation() {
You do not have JavaScript enabled in your browser. Please enable it to access the Custom Menu functionality.
-
+
false ) );
if ( !empty( $custom_menus ) )
@@ -74,12 +74,12 @@ function wp_custom_navigation() {
}
}
}
-
+
if ( isset( $_POST['set_wp_menu'] ) ) {
update_option( 'wp_custom_nav_menu', $_POST['enable_wp_menu'] );
$messagesdiv = '
'.$themename.'s Custom Menu has been updated!
';
- }
-
+ }
+
if ( isset( $_POST['licount'] ) )
$postCounter = $_POST['licount'];
else
@@ -93,13 +93,13 @@ function wp_custom_navigation() {
$existing_term = get_term_by( 'name', $insert_menu_name, 'menu' );
if ( $existing_term ) {
$messagesdiv = '
'.$insert_menu_name.' Menu has already created - please try another name
';
- } else {
+ } else {
$term = wp_insert_term( $insert_menu_name, 'menu' );
if ( $term ) {
$custom_menus[$term['term_id']] = $term;
$menu_selected_id = $term['term_id'];
$menu_id_in_edit = $menu_selected_id;
- $messagesdiv = '
'.$insert_menu_name.' Menu has been created!
';
+ $messagesdiv = '
'.$insert_menu_name.' Menu has been created!
';
$postCounter = 0;
}
@@ -108,8 +108,8 @@ function wp_custom_navigation() {
$messagesdiv = '
Please enter a valid Menu name
';
}
}
-
- if ( isset($_POST['reset_wp_menu']) ) {
+
+ if ( isset($_POST['reset_wp_menu']) ) {
$success = wp_custom_nav_reset();
if ($success) {
// DISPLAY SUCCESS MESSAGE IF Menu Reset Correctly
@@ -128,7 +128,7 @@ function wp_custom_navigation() {
$update_fields = array( 'menu_order', 'guid', 'post_content', 'post_title', 'post_excerpt', 'post_content_filtered' );
//Loop through all POST variables
for ($k = 1;$k<= $postCounter; $k++) {
-
+
if (isset($_POST['dbid'.$k])) { $db_id = $_POST['dbid'.$k]; } else { $db_id = 0; }
if (isset($_POST['postmenu'.$k])) { $post_id = $_POST['postmenu'.$k]; } else { $post_id = 0; }
//@todo implement heirarchy
@@ -142,7 +142,7 @@ function wp_custom_navigation() {
if (isset($_POST['linktype'.$k])) { $linktype = $_POST['linktype'.$k]; } else { $linktype = 'custom'; }
if (isset($_POST['anchortitle'.$k])) { $custom_anchor_title = stripslashes($_POST['anchortitle'.$k]); } else { $custom_anchor_title = $custom_title; }
if (isset($_POST['newwindow'.$k])) { $new_window = $_POST['newwindow'.$k]; } else { $new_window = 0; }
-
+
$post = array( 'post_status' => 'publish', 'post_type' => 'menu_item', 'post_author' => $user_ID,
'ping_status' => 0, 'post_parent' => $post_id, '`menu_order' => $position,
'guid' => $custom_linkurl, 'post_excerpt' => $custom_anchor_title, 'tax_input' => array( 'menu' => $menu_title ),
@@ -175,43 +175,43 @@ function wp_custom_navigation() {
//DISPLAY SUCCESS MESSAGE IF POST CORRECT
$messagesdiv = '
'.$themename.'s Custom Menu has been updated!
';
}
-
+
//DISPLAY Custom Navigation
?>
Custom Navigation
The Custom Menu has not been Enabled yet. Please enable it in order to use it -------->
';
}
-
-
+
+
?>
-
+
-
Menu Title
URL
diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php
index 90b29ac7e6..a67fc12a6c 100644
--- a/wp-admin/edit-tags.php
+++ b/wp-admin/edit-tags.php
@@ -224,7 +224,7 @@ if ( empty($tags_per_page) || $tags_per_page < 1 )
if ( 'post_tag' == $taxonomy ) {
$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
$tags_per_page = apply_filters( 'tagsperpage', $tags_per_page ); // Old filter
-} elseif ( 'category' == $taxonomy ) {
+} elseif ( 'category' == $taxonomy ) {
$tags_per_page = apply_filters( 'edit_categories_per_page', $tags_per_page ); // Old filter
} else {
$tags_per_page = apply_filters( 'edit_' . $taxonomy . '_per_page', $tags_per_page );
@@ -304,10 +304,10 @@ if ( $page_links )
-
+
diff --git a/wp-admin/js/custom-navigation-default-items.dev.js b/wp-admin/js/custom-navigation-default-items.dev.js
index 22cc44ea35..dd9c00c5cf 100644
--- a/wp-admin/js/custom-navigation-default-items.dev.js
+++ b/wp-admin/js/custom-navigation-default-items.dev.js
@@ -8,7 +8,7 @@
* @package WordPress
* @subpackage Administration
*/
-
+
/*
* Init Functions
*/
@@ -23,37 +23,37 @@ jQuery(function($)
modal: true,
buttons: {
'Save': function() {
-
+
titletosave = $('#edittitle').attr('value');
linktosave = $('#editlink').attr('value');
anchortitletosave = $('#editanchortitle').attr('value');
newwindowtosave = $('#editnewwindow').attr('value');
desctosave = $('#editdescription').attr('value');
-
+
$('#title' + $(this).dialog('option', 'itemID')).attr('value',titletosave);
$('#linkurl' + $(this).dialog('option', 'itemID')).attr('value',linktosave);
$('#anchortitle' + $(this).dialog('option', 'itemID')).attr('value',anchortitletosave);
$('#newwindow' + $(this).dialog('option', 'itemID')).attr('value',newwindowtosave);
$('#description' + $(this).dialog('option', 'itemID')).attr('value',desctosave);
-
+
$('#menu-' + $(this).dialog('option', 'itemID') + ' > dl > dt > span.title').text(titletosave);
-
+
$('#view' + + $(this).dialog('option', 'itemID')).attr('href', linktosave);
-
+
$(this).dialog('close');
-
+
},
Cancel: function() {
$(this).dialog('close');
}
}
});
-
+
$('#message').animate({ opacity: 1.0 },2000).fadeOut(300, function(){ $(this).remove();});
-
+
//Add dropzone
- $('#custom-nav li').prepend('
');
-
+ $('#custom-nav li').prepend('
');
+
//Make li items draggable
$('#custom-nav li').draggable({
handle: ' > dl',
@@ -68,70 +68,70 @@ jQuery(function($)
{
accept: '#custom-nav li',
tolerance: 'pointer',
- drop: function(e, ui)
+ drop: function(e, ui)
{
var li = $(this).parent();
var child = !$(this).hasClass('dropzone');
//Add UL to first child
- if (child && li.children('ul').length == 0)
+ if (child && li.children('ul').length == 0)
{
li.append('');
}
//Make it draggable
- if (child)
+ if (child)
{
li.children('ul').append(ui.draggable);
}
- else
+ else
{
li.before(ui.draggable);
}
li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
-
+
var draggablevalue = ui.draggable.attr('value');
var droppablevalue = li.attr('value');
- li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
+ li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
$(this).parent().find("dt").removeAttr('style');
$(this).parent().find("div:first").removeAttr('style');
-
-
+
+
},
- over: function()
+ over: function()
{
//Add child
- if ($(this).attr('class') == 'dropzone ui-droppable')
+ if ($(this).attr('class') == 'dropzone ui-droppable')
{
$(this).parent().find("div:first").css('background', 'none').css('height', '50px');
}
//Add above
- else if ($(this).attr('class') == 'ui-droppable')
+ else if ($(this).attr('class') == 'ui-droppable')
{
$(this).parent().find("dt:first").css('background', '#d8d8d8');
}
//do nothing
else {
-
+
}
var parentid = $(this).parent().attr('id');
-
+
},
- out: function()
+ out: function()
{
$(this).parent().find("dt").removeAttr('style');
$(this).parent().find("div:first").removeAttr('style');
$(this).filter('.dropzone').css({ borderColor: '' });
},
deactivate: function()
- {
-
-
+ {
+
+
}
-
-
+
+
});
-
- //Handle Save Button Clicks
+
+ //Handle Save Button Clicks
$('#save_top').click(function()
{
updatepostdata();
@@ -140,7 +140,7 @@ jQuery(function($)
{
updatepostdata();
});
-
+
});
diff --git a/wp-admin/js/custom-navigation-dynamic-functions.dev.js b/wp-admin/js/custom-navigation-dynamic-functions.dev.js
index d3214600c4..3288b01fb2 100644
--- a/wp-admin/js/custom-navigation-dynamic-functions.dev.js
+++ b/wp-admin/js/custom-navigation-dynamic-functions.dev.js
@@ -8,22 +8,22 @@
* @package WordPress
* @subpackage Administration
*/
-
+
/*
* Removes menu items from current menu
* @param int o - the id of the menu li to remove.
*/
-function removeitem(o)
+function removeitem(o)
{
-
+
var todelete = document.getElementById('menu-' + o);
-
+
if (todelete)
- {
+ {
var parenttodelete = document.getElementById('menu-' + o).parentNode;
- throwaway_node = parenttodelete.removeChild(todelete);
- }
-
+ throwaway_node = parenttodelete.removeChild(todelete);
+ }
+
updatepostdata();
};
@@ -31,50 +31,50 @@ function removeitem(o)
* Loads dialog window to edit menu items from current menu
* @param int o - the id of the menu li to edit.
*/
-function edititem(o)
+function edititem(o)
{
-
+
itemTitle = jQuery('#title' + o).attr('value');
itemURL = jQuery('#linkurl' + o).attr('value');
itemAnchorTitle = jQuery('#anchortitle' + o).attr('value');
itemNewWindow = jQuery('#newwindow' + o).attr('value');
itemDesc = jQuery('#description' + o).attr('value');
-
+
jQuery('#dialog-confirm').dialog( 'option' , 'itemID' , o )
-
+
jQuery('#dialog-confirm').dialog('open');
-
+
jQuery('#edittitle').attr('value', itemTitle);
jQuery('#editlink').attr('value', itemURL);
jQuery('#editanchortitle').attr('value', itemAnchorTitle);
jQuery("#editnewwindow option[value='" + itemNewWindow + "']").attr('selected', 'selected');
jQuery('#editdescription').attr('value', itemDesc);
-
+
};
/*
* Prepares menu items for POST
*/
-function updatepostdata()
-{
-
+function updatepostdata()
+{
+
var i = 0;
jQuery("#custom-nav").find("li").each(function(i) {
i = i + 1;
var j = jQuery(this).attr('value');
-
+
jQuery(this).find('#position' + j).attr('value', i);
jQuery(this).attr('id','menu-' + i);
jQuery(this).attr('value', i);
-
+
jQuery(this).find('#dbid' + j).attr('name','dbid' + i);
jQuery(this).find('#dbid' + j).attr('id','dbid' + i);
-
+
jQuery(this).find('#postmenu' + j).attr('name','postmenu' + i);
jQuery(this).find('#postmenu' + j).attr('id','postmenu' + i);
-
+
var p = jQuery(this).find('#parent' + j).parent().parent().parent().attr('value');
-
+
jQuery(this).find('#parent' + j).attr('name','parent' + i);
jQuery(this).find('#parent' + j).attr('id','parent' + i);
if (p) {
@@ -84,33 +84,33 @@ function updatepostdata()
//reset p to be top level
p = 0;
}
-
+
jQuery(this).find('#parent' + j).attr('value', p);
-
+
jQuery(this).find('#title' + j).attr('name','title' + i);
jQuery(this).find('#title' + j).attr('id','title' + i);
-
+
jQuery(this).find('#linkurl' + j).attr('name','linkurl' + i);
jQuery(this).find('#linkurl' + j).attr('id','linkurl' + i);
-
+
jQuery(this).find('#description' + j).attr('name','description' + i);
jQuery(this).find('#description' + j).attr('id','description' + i);
-
+
jQuery(this).find('#icon' + j).attr('name','icon' + i);
jQuery(this).find('#icon' + j).attr('id','icon' + i);
-
+
jQuery(this).find('#position' + j).attr('name','position' + i);
jQuery(this).find('#position' + j).attr('id','position' + i);
-
+
jQuery(this).find('#linktype' + j).attr('name','linktype' + i);
jQuery(this).find('#linktype' + j).attr('id','linktype' + i);
-
+
jQuery(this).find('#anchortitle' + j).attr('name','anchortitle' + i);
jQuery(this).find('#anchortitle' + j).attr('id','anchortitle' + i);
-
+
jQuery(this).find('#newwindow' + j).attr('name','newwindow' + i);
jQuery(this).find('#newwindow' + j).attr('id','newwindow' + i);
-
+
jQuery(this).find('dl > dt > span > #remove' + j).attr('value', i);
jQuery(this).find('dl > dt > span > #remove' + j).attr('onClick', 'removeitem(' + i + ')');
jQuery(this).find('dl > dt > span > #remove' + j).attr('id','remove' + i);
@@ -118,10 +118,10 @@ function updatepostdata()
jQuery('#licount').attr('value',i);
});
-
-
-
-};
+
+
+
+};
/*
* Adds item from Page, Category, or Custom options menu
@@ -132,8 +132,8 @@ function updatepostdata()
* @param int itemid - menu id.
* @param int itemparentid - default 0.
* @param string itemdescription - the description of the menu item.
-*/
-function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparentid,itemdescription)
+*/
+function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparentid,itemdescription)
{
var inputvaluevarname = '';
var inputvaluevarurl = '';
@@ -142,7 +142,7 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
var inputdescription = '';
var inputicon = '';
- if (additemtype == 'Custom')
+ if (additemtype == 'Custom')
{
inputvaluevarname = document.getElementById('custom_menu_item_name').value;
inputvaluevarurl = document.getElementById('custom_menu_item_url').value;
@@ -159,7 +159,7 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
inputparentid = '0';
inputlinktype = 'page';
inputdescription = htmlentities(itemdescription.toString());
-
+
}
else if (additemtype == 'Category')
{
@@ -170,7 +170,7 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
inputlinktype = 'category';
inputdescription = htmlentities(itemdescription.toString());
}
- else
+ else
{
inputvaluevarname = '';
inputvaluevarname = '';
@@ -179,40 +179,40 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
inputlinktype = 'custom';
inputdescription = '';
}
-
+
var count=document.getElementById('custom-nav').getElementsByTagName('li').length;
var randomnumber = count;
var validatetest = 0;
- try
+ try
{
var test=document.getElementById("menu-" + randomnumber.toString()).value;
}
- catch (err)
+ catch (err)
{
validatetest = 1;
}
- while (validatetest == 0)
+ while (validatetest == 0)
{
randomnumber = randomnumber + 1;
- try
+ try
{
var test2=document.getElementById("menu-" + randomnumber.toString()).value;
}
- catch (err)
+ catch (err)
{
validatetest = 1;
}
}
-
+
//Notification Message
jQuery('.maintitle').after('
');
jQuery('#message').animate({ opacity: 1.0 },2000).fadeOut(300, function(){ jQuery(this).remove();});
-
+
//Appends HTML to the menu
jQuery('#custom-nav').append('
' + inputvaluevarname + ' ' + additemtype + ' ' + inputvaluevarname + ' ');
@@ -230,54 +230,54 @@ function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparent
jQuery('#menu-' + randomnumber + ' dl, #menu-' + randomnumber + ' .dropzone').droppable({
accept: '#' + randomnumber + ', #custom-nav li',
tolerance: 'pointer',
- drop: function(e, ui)
+ drop: function(e, ui)
{
var li = jQuery(this).parent();
var child = !jQuery(this).hasClass('dropzone');
//Append UL to first child
- if (child && li.children('ul').length == 0)
+ if (child && li.children('ul').length == 0)
{
li.append('
');
}
//Make it draggable
- if (child)
+ if (child)
{
li.children('ul').append(ui.draggable);
}
- else
+ else
{
li.before(ui.draggable);
}
-
- li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
-
+
+ li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
+
var draggablevalue = ui.draggable.attr('value');
var droppablevalue = li.attr('value');
- li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
+ li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
jQuery(this).parent().find("dt").removeAttr('style');
jQuery(this).parent().find("div:first").removeAttr('style');
-
+
},
- over: function()
+ over: function()
{
//Add child
- if (jQuery(this).attr('class') == 'dropzone ui-droppable')
+ if (jQuery(this).attr('class') == 'dropzone ui-droppable')
{
jQuery(this).parent().find("div:first").css('background', 'none').css('height', '50px');
}
//Add above
- else if (jQuery(this).attr('class') == 'ui-droppable')
+ else if (jQuery(this).attr('class') == 'ui-droppable')
{
jQuery(this).parent().find("dt:first").css('background', '#d8d8d8');
}
//do nothing
else {
-
+
}
var parentid = jQuery(this).parent().attr('id');
-
+
},
- out: function()
+ out: function()
{
jQuery(this).parent().find("dt").removeAttr('style');
jQuery(this).parent().find("div:first").removeAttr('style');
diff --git a/wp-admin/js/custom-navigation-php-functions.dev.js b/wp-admin/js/custom-navigation-php-functions.dev.js
index 02646458d1..543999c13d 100644
--- a/wp-admin/js/custom-navigation-php-functions.dev.js
+++ b/wp-admin/js/custom-navigation-php-functions.dev.js
@@ -1,9 +1,9 @@
-/*
+/*
* More info at: http://phpjs.org
- *
+ *
* This is version: 3.08
* php.js is copyright 2010 Kevin van Zonneveld.
- *
+ *
* Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld
* (http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White
* (http://getsprink.com), Waldo Malqui Silva, Paulo Ricardo F. Santos, Jack,
@@ -84,10 +84,10 @@
* taith, Matt Bradley, FremyCompany, T.J. Leahy, Greg Frazier, Valentina De
* Rosa, Tod Gentille, Riddler (http://www.frontierwebdev.com/), Alexander M
* Beedie
- *
+ *
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -95,10 +95,10 @@
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
- *
+ *
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -106,7 +106,7 @@
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
- */
+ */
function get_html_translation_table (table, quote_style) {
// http://kevin.vanzonneveld.net
@@ -128,11 +128,11 @@ function get_html_translation_table (table, quote_style) {
// % note: chooses to create the constants themselves.
// * example 1: get_html_translation_table('HTML_SPECIALCHARS');
// * returns 1: {'"': '"', '&': '&', '<': '<', '>': '>'}
-
+
var entities = {}, hash_map = {}, decimal = 0, symbol = '';
var constMappingTable = {}, constMappingQuoteStyle = {};
var useTable = {}, useQuoteStyle = {};
-
+
// Translate arguments
constMappingTable[0] = 'HTML_SPECIALCHARS';
constMappingTable[1] = 'HTML_ENTITIES';
@@ -263,7 +263,7 @@ function get_html_translation_table (table, quote_style) {
symbol = String.fromCharCode(decimal);
hash_map[symbol] = entities[decimal];
}
-
+
return hash_map;
}
@@ -286,7 +286,7 @@ function htmlentities (string, quote_style) {
var hash_map = {}, symbol = '', tmp_str = '', entity = '';
tmp_str = string.toString();
-
+
if (false === (hash_map = this.get_html_translation_table('HTML_ENTITIES', quote_style))) {
return false;
}
@@ -295,6 +295,6 @@ function htmlentities (string, quote_style) {
entity = hash_map[symbol];
tmp_str = tmp_str.split(symbol).join(entity);
}
-
+
return tmp_str;
}
\ No newline at end of file
diff --git a/wp-admin/js/tags.dev.js b/wp-admin/js/tags.dev.js
index 056cc25861..abb8ecc07c 100644
--- a/wp-admin/js/tags.dev.js
+++ b/wp-admin/js/tags.dev.js
@@ -38,7 +38,7 @@ jQuery(document).ready(function($) {
if ( ! res )
return;
- var parent = form.find('select#parent').val();
+ var parent = form.find('select#parent').val();
if ( parent > 0 && $('#tag-' + parent ).length > 0 ) // If the parent exists on this page, insert it below. Else insert it at the top of the list.
$('#the-list #tag-' + parent).after( res.responses[0].supplemental['noparents'] ); // As the parent exists, Insert the version with - - - prefixed
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index 84ba235bc7..ba58758ee9 100644
--- a/wp-admin/plugins.php
+++ b/wp-admin/plugins.php
@@ -545,10 +545,10 @@ function print_plugins_table($plugins, $context = '') {
$actions[] = '
' . __('Activate') . ' ';
if ( is_multisite() && is_super_admin() )
$actions[] = '
' . __('Network Activate') . ' ';
-
+
if ( !is_multisite() && current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
$actions[] = '
' . __('Edit') . ' ';
-
+
if ( ! $is_active && current_user_can('delete_plugins') )
$actions[] = '
' . __('Delete') . ' ';
}
diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php
index 6e01c9c963..18c6e41f71 100644
--- a/wp-includes/canonical.php
+++ b/wp-includes/canonical.php
@@ -144,7 +144,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
$redirect['query'] = remove_query_arg( array( 'category_name', 'tag', 'cat', 'tag_id', 'term', 'taxonomy'), $redirect['query']);
if ( is_tax() ) { // Custom taxonomies will have a custom query var, remove those too:
$tax = get_taxonomy( $obj->taxonomy );
- if ( false !== $tax->query_var)
+ if ( false !== $tax->query_var)
$redirect['query'] = remove_query_arg($tax->query_var, $redirect['query']);
}
diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php
index 6719f3e33c..7e112f53dd 100644
--- a/wp-includes/category-template.php
+++ b/wp-includes/category-template.php
@@ -364,12 +364,12 @@ function wp_dropdown_categories( $args = '' ) {
$output = "
\n";
else
$output = '';
-
+
if ( empty($categories) && ! $r['hide_if_empty'] && !empty($show_option_none) ) {
$show_option_none = apply_filters( 'list_cats', $show_option_none );
$output .= "\t$show_option_none \n";
}
-
+
if ( ! empty( $categories ) ) {
if ( $show_option_all ) {
diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index ff8e1deb8a..57af6df6ce 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -1469,13 +1469,13 @@ function comment_form( $args = array(), $post_id = null ) {
$defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '',
'email' => '',
+ '',
'url' => '',
'must_log_in' => '' . sprintf( __( 'You must be logged in to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
',
'logged_in_as' => '' . sprintf( __( 'Logged in as %s . Log out?
' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),
- 'comment_notes_before' => '',
+ 'comment_notes_before' => '',
'comment_notes_after' => '' . __( 'You may use these HTML tags and attributes:' ) . ' ' . allowed_tags() . '
',
'id_form' => 'commentform',
'id_submit' => 'submit',
diff --git a/wp-includes/custom-navigation.php b/wp-includes/custom-navigation.php
index c564e0db64..918cd4cb8d 100644
--- a/wp-includes/custom-navigation.php
+++ b/wp-includes/custom-navigation.php
@@ -31,10 +31,10 @@ function wp_custom_navigation_get_menu_items( $menu_objects, $key = 'ID' ) {
}
function wp_custom_navigation_setup($override = false) {
-
+
$nav_version = '1.1.0';
//Custom Navigation Menu Setup
-
+
//Check for Upgrades
if (get_option('wp_settings_custom_nav_version') <> '') {
$nav_version_in_db = get_option('wp_settings_custom_nav_version');
@@ -42,11 +42,11 @@ function wp_custom_navigation_setup($override = false) {
else {
$nav_version_in_db = '0';
}
-
+
//Override for menu descriptions
update_option('wp_settings_custom_nav_advanced_options','yes');
-
- if(($nav_version_in_db <> $nav_version) || ($override))
+
+ if(($nav_version_in_db <> $nav_version) || ($override))
update_option('wp_settings_custom_nav_version',$nav_version);
$custom_menus = get_terms( 'menu', array( 'hide_empty' => false ) );
@@ -84,20 +84,20 @@ function wp_custom_navigation_setup($override = false) {
/*-----------------------------------------------------------------------------------*/
function wp_custom_navigation_output($args = array()) {
-
+
//DEFAULT ARGS
$type = 'frontend';
- $name = 'Menu 1';
+ $name = 'Menu 1';
$id = 0;
$desc = 2;
$before_title = '';
$after_title = '';
-
+
if (isset($args)) {
-
- if ( !is_array($args) )
+
+ if ( !is_array($args) )
parse_str( $args, $args );
-
+
extract($args);
}
@@ -109,7 +109,7 @@ function wp_custom_navigation_output($args = array()) {
{
$desc = 2;
}
-
+
$queried_id = 0;
global $wp_query;
if ( is_page() )
@@ -145,14 +145,14 @@ function wp_custom_navigation_output($args = array()) {
$link = get_category_link( $menu_item->post_parent );
else
$link = $menu_item->guid;
-
+
if ( $menu_item->post_title == '' ) {
$title_raw = get_categories( 'include='.$menu_item->post_parent );
- $title = htmlentities($title_raw[0]->cat_name);
+ $title = htmlentities($title_raw[0]->cat_name);
} else {
$title = htmlentities( $menu_item->post_title );
}
-
+
if ( $menu_item->post_content == '' )
$description = htmlentities( strip_tags( category_description( $menu_item->post_parent ) ) );
else
@@ -176,14 +176,14 @@ function wp_custom_navigation_output($args = array()) {
else {
$anchor_title = $title;
}
-
+
if ($queried_id == $wp_custom_nav_menu_items->post_id) {
$li_class = 'class="current_page_item"';
}
else {
$li_class = '';
}
-
+
if (isset($wp_custom_nav_menu_items->new_window)) {
if ($wp_custom_nav_menu_items->new_window > 0) {
$target = 'target="_blank"';
@@ -192,30 +192,30 @@ function wp_custom_navigation_output($args = array()) {
$target = '';
}
}
-*/
+*/
//List Items
?>
- get_results("SELECT id,post_id,parent_id,position,custom_title,custom_link,custom_description,menu_icon,link_type,custom_anchor_title,new_window FROM ".$table_name." WHERE parent_id = '".$post_id."' AND menu_id='".$menu_id."' ORDER BY position ASC");
-
+
if (empty($wp_custom_nav_menu))
{
-
+
}
else
{
@@ -317,26 +317,26 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
}
//DISPLAY Loop
- foreach ($wp_custom_nav_menu as $sub_item)
+ foreach ($wp_custom_nav_menu as $sub_item)
{
//Figure out where the menu item sits
$counter=$sub_item->position;
-
+
//Prepare Menu Data
//Category Menu Item
- if ($sub_item->link_type == 'category')
+ if ($sub_item->link_type == 'category')
{
-
+
$parent_id = $sub_item->parent_id;
$post_id = $sub_item->post_id;
-
+
if ($sub_item->custom_link == '') {
$link = get_category_link($sub_item->post_id);
}
else {
$link = $sub_item->custom_link;
}
-
+
if ($sub_item->custom_title == '') {
$title_raw = get_categories('include='.$sub_item->post_id);
$title = htmlentities($title_raw[0]->cat_name);
@@ -344,7 +344,7 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
else {
$title = htmlentities($sub_item->custom_title);
}
-
+
if ($sub_item->custom_description == '') {
$description = strip_tags(category_description($sub_item->post_id));
}
@@ -356,10 +356,10 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
//Page Menu Item
elseif ($sub_item->link_type == 'page')
{
-
+
$parent_id = $sub_item->parent_id;
$post_id = $sub_item->post_id;
-
+
if ($sub_item->custom_link == '') {
$link = get_permalink($sub_item->post_id);
}
@@ -373,7 +373,7 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
else {
$title = htmlentities($sub_item->custom_title);
}
-
+
if ($sub_item->custom_description == '') {
$description = get_post_meta($sub_item->post_id, 'page-description', true);
}
@@ -381,7 +381,7 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
$description = $sub_item->custom_description;
}
$target = '';
-
+
}
//Custom Menu Item
else
@@ -399,7 +399,7 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
else {
$li_class = '';
}
-
+
//SET anchor title
if (isset($sub_item->custom_anchor_title)) {
$anchor_title = htmlentities($sub_item->custom_anchor_title);
@@ -407,19 +407,19 @@ function wp_custom_navigation_sub_items($post_id,$type,$table_name,$output_type,
else {
$anchor_title = $title;
}
-
+
if (isset($sub_item->new_window)) {
if ($sub_item->new_window > 0) {
$target = 'target="_blank"';
}
}
-
+
//List Items
- ?>
-
- '',
'number' => '',
'offset' => 0 );
-
- //GET all pages
+
+ //GET all pages
$pages_array = get_pages($pages_args);
-
+
$intCounter = $counter;
$parentli = $intCounter;
-
+
if ($pages_array)
{
//DISPLAY Loop
foreach ($pages_array as $post)
{
-
+
if ($post->post_parent == 0)
{
//Custom Menu
@@ -505,15 +505,15 @@ function wp_custom_nav_get_pages($counter,$type) {
{
$description = get_post_meta($post->ID, 'page-description', true);
?>
-
+
-
-
-
+
@@ -564,36 +564,36 @@ function wp_custom_nav_get_pages($counter,$type) {
$post_url = get_permalink($post->ID);
$post_id = $post->ID;
$post_parent_id = $post->post_parent;
-
+
$description = htmlentities(get_post_meta($post_id, 'page-description', true));
-
+
?>
-
+
post_title; ?>
ID; ?>
-
+
-
+
-
- '',
'number' => '',
'pad_counts' => false );
-
-
-
- $intCounter = $counter;
-
- //GET all categories
+
+
+
+ $intCounter = $counter;
+
+ //GET all categories
$categories_array = get_categories($category_args);
-
+
if ($categories_array)
{
//DISPLAY Loop
@@ -636,14 +636,14 @@ function wp_custom_nav_get_categories($counter, $type) {
if ($type == 'menu')
{
?>
-
+
-
- cat_name; ?>
cat_ID; ?>
-
-
+ cat_ID, $intCounter, $parentli, 'categories','default');
?>
-
+
-
- $childof,
@@ -739,43 +739,43 @@ function wp_custom_navigation_default_sub_items($childof, $intCounter, $parentli
'parent' => $childof);
}
//Sidebar Menu
- elseif ($output_type == 'default')
+ elseif ($output_type == 'default')
{
$sub_args = array(
'child_of' => $childof,
'hide_empty' => false,
'parent' => $childof);
}
- else
+ else
{
-
+
}
-
- //Get Sub Category Items
+
+ //Get Sub Category Items
if ($type == 'categories')
{
- $sub_array = get_categories($sub_args);
+ $sub_array = get_categories($sub_args);
}
//Get Sub Page Items
elseif ($type == 'pages')
{
$sub_array = get_pages($sub_args);
}
-
-
+
+
if ($sub_array)
{
?>
-
+
-
+
cat_ID);
$title = htmlentities($sub_item->cat_name);
@@ -783,7 +783,7 @@ function wp_custom_navigation_default_sub_items($childof, $intCounter, $parentli
$itemid = $sub_item->cat_ID;
$linktype = 'category';
$appendtype = 'Category';
- $description = htmlentities(strip_tags($sub_item->description));
+ $description = htmlentities(strip_tags($sub_item->description));
}
//Page Menu Item
elseif ($type == 'pages')
@@ -797,13 +797,13 @@ function wp_custom_navigation_default_sub_items($childof, $intCounter, $parentli
$description = htmlentities(get_post_meta($itemid, 'page-description', true));
}
//Custom Menu Item
- else
+ else
{
$title = '';
$linktype = 'custom';
$appendtype= 'Custom';
}
-
+
//Custom Menu
if ($output_type == 'menu')
{
@@ -814,7 +814,7 @@ function wp_custom_navigation_default_sub_items($childof, $intCounter, $parentli
-
+
@@ -822,7 +822,7 @@ function wp_custom_navigation_default_sub_items($childof, $intCounter, $parentli
-
+
@@ -837,49 +837,49 @@ function wp_custom_navigation_default_sub_items($childof, $intCounter, $parentli
-
+
-
-
+
-
-
+
-
-
-
-
+
-
- $childof,
'hide_empty' => false,
'parent' => $childof);
- $sub_array = get_categories($sub_args);
+ $sub_array = get_categories($sub_args);
}
//Get Sub Page Items
elseif ($type == 'pages')
@@ -911,14 +911,14 @@ function get_children_menu_elements($childof, $intCounter, $parentli, $type, $me
$sub_args = array(
'child_of' => $childof,
'parent' => $childof);
-
+
$sub_array = get_pages($sub_args);
-
+
}
else {
-
+
}
-
+
if ($sub_array)
{
//DISPLAY Loop
@@ -928,7 +928,7 @@ function get_children_menu_elements($childof, $intCounter, $parentli, $type, $me
$sub_item_parent = $sub_item->parent;
}
elseif (isset($sub_item->post_parent)) {
- $sub_item_parent = $sub_item->post_parent;
+ $sub_item_parent = $sub_item->post_parent;
}
else {
}
@@ -937,7 +937,7 @@ function get_children_menu_elements($childof, $intCounter, $parentli, $type, $me
{
//Prepare Menu Data
//Category Menu Item
- if ($type == 'categories')
+ if ($type == 'categories')
{
$link = get_category_link($sub_item->cat_ID);
$title = htmlentities($sub_item->cat_name);
@@ -957,13 +957,13 @@ function get_children_menu_elements($childof, $intCounter, $parentli, $type, $me
$appendtype= 'Page';
}
//Custom Menu Item
- else
+ else
{
$title = '';
$linktype = 'custom';
$appendtype= 'Custom';
}
-
+
//CHECK for existing parent records
//echo $parent_id;
$wp_result = $wpdb->get_results("SELECT id FROM ".$table_name." WHERE post_id='".$parent_id."' AND link_type='".$linktype."' AND menu_id='".$menu_id."'");
@@ -973,17 +973,17 @@ function get_children_menu_elements($childof, $intCounter, $parentli, $type, $me
else {
//$parent_id = 0;
}
-
+
//INSERT item
$insert = "INSERT INTO ".$table_name." (position,post_id,parent_id,custom_title,custom_link,custom_description,menu_icon,link_type,menu_id,custom_anchor_title) "."VALUES ('".$counter."','".$itemid."','".$parent_id."','".$title."','".$link."','','','".$linktype."','".$menu_id."','".$title."')";
$results = $wpdb->query( $insert );
-
+
$counter++;
$counter = get_children_menu_elements($itemid, $counter, $parent_id, $type, $menu_id, $table_name);
- }
+ }
//Do nothing
else {
-
+
}
}
}
diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php
index 793f861113..f6f8f3289b 100644
--- a/wp-includes/default-widgets.php
+++ b/wp-includes/default-widgets.php
@@ -1009,10 +1009,10 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
function WP_CustomNavWidget() {
$widget_ops = array('description' => 'Use this widget to add one of your Custom Navigation Menus as a widget.' );
- parent::WP_Widget(false, __('Custom Navigation Menu'),$widget_ops);
+ parent::WP_Widget(false, __('Custom Navigation Menu'),$widget_ops);
}
- function widget($args, $instance) {
+ function widget($args, $instance) {
$navmenu = $instance['navmenu'];
$navtitle = $instance['navtitle'];
$navdeveloper = strtolower($instance['navdeveloper']);
@@ -1022,21 +1022,21 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
$navdivclass = $instance['navdivclass'];
$navulid = $instance['navulid'];
$navulclass = $instance['navulclass'];
-
+
//Override for menu descriptions
$advanced_option_descriptions = get_option('wp_settings_custom_nav_advanced_options');
- if ($advanced_option_descriptions == 'no')
- {
+ if ($advanced_option_descriptions == 'no')
+ {
$navwidgetdescription = 2;
- }
+ }
else
{
$navwidgetdescription = $instance['navwidgetdescription'];
}
$menuexists = false;
-
+
global $wpdb;
-
+
//GET menu name
if ($navmenu > 0)
{
@@ -1046,108 +1046,108 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
$menuexists = true;
}
//Do nothing
- else
+ else
{
$menuexists = false;
}
?>
-
-
-
-
+
prefix . "custom_nav_menus";
$custom_menu_records = $wpdb->get_results("SELECT id,menu_name FROM ".$table_name_custom_menus);
-
+
//CHECK if menus exist
if ($custom_menu_records > 0)
{
-
+
?>
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
Yes />
No />
-
+
-
-
-
+
-
-
+
+
Yes />
No />
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
Yes />
No />
-
+
-
+
-
+
-
+
-
+
-
+
style="display:none;">
-
+
-
-
+
+
Yes />
No />
-
@@ -1370,7 +1370,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
get_queried_object();;
-
+
if ( ! $tag )
return;
diff --git a/wp-includes/http.php b/wp-includes/http.php
index 5ee9a6c77c..2484bb30bb 100644
--- a/wp-includes/http.php
+++ b/wp-includes/http.php
@@ -1012,7 +1012,7 @@ class WP_Http_Streams {
'max_redirects' => $r['redirection'] + 1, // See #11557
'protocol_version' => (float) $r['httpversion'],
'header' => $strHeaders,
- 'ignore_errors' => true, // Return non-200 requests.
+ 'ignore_errors' => true, // Return non-200 requests.
'timeout' => $r['timeout'],
'ssl' => array(
'verify_peer' => $ssl_verify,
diff --git a/wp-includes/ms-default-constants.php b/wp-includes/ms-default-constants.php
index 49746ef044..d3823af9ae 100644
--- a/wp-includes/ms-default-constants.php
+++ b/wp-includes/ms-default-constants.php
@@ -34,7 +34,7 @@ function ms_upload_constants( ) {
*/
function ms_cookie_constants( ) {
global $current_site;
-
+
/**
* @since 1.2.0
*/
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index b132db3068..8fbccbfe38 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -397,16 +397,16 @@ function wp_default_scripts( &$scripts ) {
) );
}
-
+
//Custom Navigation
$scripts->add( 'custom-navigation-ui-custom', '/wp-admin/js/custom-navigation-custom-jquery-ui-1.7.2.js', array('jquery'), '1.7.2' );
$scripts->add_data( 'custom-navigation-ui-custom', 'group', 1 );
-
+
$scripts->add( 'custom-navigation-default-items', "/wp-admin/js/custom-navigation-default-items$suffix.js", false, '20100220' );
$scripts->add( 'custom-navigation-dynamic-functions', "/wp-admin/js/custom-navigation-dynamic-functions$suffix.js", false, '20100220' );
$scripts->add( 'custom-navigation-php-functions', "/wp-admin/js/custom-navigation-php-functions$suffix.js", false, '20100220' );
-
+
}
/**
@@ -473,7 +473,7 @@ function wp_default_styles( &$styles ) {
$styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
$styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
$styles->add( 'custom-navigation', "/wp-admin/css/custom-navigation$suffix.css", array(), '20100215' );
-
+
foreach ( $rtl_styles as $rtl_style )
$styles->add_data( $rtl_style, 'rtl', true );
}
diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
index e9664896d2..bd0cc67042 100644
--- a/wp-includes/taxonomy.php
+++ b/wp-includes/taxonomy.php
@@ -243,7 +243,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
if ( empty($args[$cap]) )
$args[$cap] = 'manage_categories';
}
-
+
if ( empty($args['singular_label']) )
$args['singular_label'] = $args['label'];
diff --git a/wp-includes/template-loader.php b/wp-includes/template-loader.php
index e3c906a669..461a426089 100644
--- a/wp-includes/template-loader.php
+++ b/wp-includes/template-loader.php
@@ -14,7 +14,7 @@ elseif ( is_feed() ) :
do_feed();
return;
elseif ( is_trackback() ) :
- include( ABSPATH . 'wp-trackback.php' );
+ include( ABSPATH . 'wp-trackback.php' );
return;
endif;
diff --git a/wp-settings.php b/wp-settings.php
index 107fe6bda7..25f7a1b475 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -43,7 +43,7 @@ wp_fix_server_vars();
// Check for the required PHP version and for the MySQL extension or a database drop-in.
wp_check_php_mysql_versions();
-// Check if we have recieved a request due to missing favicon.ico
+// Check if we have recieved a request due to missing favicon.ico
wp_favicon_request();
// Check if we're in maintenance mode.