tsdexter
Forum Replies Created
-
Adding this line to your functions.php should work (or you can add it to the file admin-dashboard_rvy.php if you want to modify the plugin directly).
add_action ( 'dashboard_glance_items', 'rvy_right_now_pending' );
Revisionary already has a function to output the pending pages/posts you just need to call that function on the new “dashboard_glance_items” action.
I can’t verify this works because I have Press Permit installed which runs its own function to output the pending pages overriding Revisionary but the same line substituting the function call for the press permit one works for my press permit install.
add_action ( 'dashboard_glance_items', '_ppce_right_now_pending' );
Forum: Requests and Feedback
In reply to: Password complexity verification flawed in WordPress 3.7If you want a super secure password that is easy to remember, just use a sentence with spaces.
For example, excluding the quotes the following passwords meet WP 3.7+ security for “strong” rating:
“I was born in 1986”
“My dog is 7 years old”
“I drive a 2013 GTR”Forum: Fixing WordPress
In reply to: Menus not workingAs a temporary workaround until WordPress fixes this issue you can add new pages with the following steps:
- Add page like normal (from the options on the left sidebar pages/categories etc…), page will appear at bottom of menu.
- Save the menu (with page at the bottom still)
- When the menu saves/page refreshes, scroll to the bottom where the new menu item is located, use the top-right dropdown arrow to reveal the extra options, use the links such as ‘up one, down one, to top’ to move the menu items.
This is a really terrible way to manage the menu (especially a large one) but it’s working in the meantime. The key is to save the menu before you try to use the links to move it around – they only work on saved menu items, not news ones added to the menu without a save.
You can also manage the position of existing pages using those links.
I’ve also filed a bug report a few weeks back that is being worked on for a related issue where the Javascript that runs the drag/drop is causing the browser to crash – fixing/testing that bug should help with this one. https://core.trac.www.ads-software.com/ticket/25112
– Thomas
Forum: Fixing WordPress
In reply to: Menu Structure Issue after 3.6 UpgradeAs a temporary workaround until WordPress fixes this issue you can add new pages with the following steps:
- Add page like normal (from the options on the left sidebar pages/categories etc…), page will appear at bottom of menu.
- Save the menu (with page at the bottom still)
- When the menu saves/page refreshes, scroll to the bottom where the new menu item is located, use the top-right dropdown arrow to reveal the extra options, use the links such as ‘up one, down one, to top’ to move the menu items.
This is a really terrible way to manage the menu (especially a large one) but it’s working in the meantime. The key is to save the menu before you try to use the links to move it around – they only work on saved menu items, not news ones added to the menu without a save.
You can also manage the position of existing pages using those links.
I’ve also filed a bug report a few weeks back that is being worked on for a related issue where the Javascript that runs the drag/drop is causing the browser to crash – fixing/testing that bug should help with this one. https://core.trac.www.ads-software.com/ticket/25112
– Thomas
Forum: Plugins
In reply to: [Advanced Post Manager] Plugin causes JS error which breaks admin pagesOK, here is the proper fix that should likely be included in the plugin. The issue was that the plugin includes the wrong jquery-ui version.
The proper fix would be to change the function
get_jqueryui_ver(){...}
From:
// Get proper jQuery UI version to not conflict with WP admin scripts static function get_jqueryui_ver() { global $wp_version; if (version_compare($wp_version, '3.1', '>=')) { return '1.8.10'; } return '1.7.3'; }
To:
// Get proper jQuery UI version to not conflict with WP admin scripts static function get_jqueryui_ver() { global $wp_version; if (version_compare($wp_version, '3.5', '>=')) { return '1.9.2'; } if (version_compare($wp_version, '3.1', '>=')) { return '1.8.10'; } return '1.7.3'; }
It looks like wordpress 3.5 increased the jquery-ui version to 1.9.2 and you guys forgot to make that change in the plugin.
Thanks,
ThomasForum: Plugins
In reply to: [Advanced Post Manager] Plugin causes JS error which breaks admin pagesThis fix has broken the datepicker. Investigating a better solution.
Forum: Plugins
In reply to: [Advanced Post Manager] Plugin causes JS error which breaks admin pagesI’ve found the reason. You are calling in WP default jQuery UI (version v1.9.2 in WP 3.5) but you are using jQuery UI code that is deprecated in 1.9+
I’ve modified core files from Advanced Post Manager in order to rectify this. Can you please update the plugin and upload a new version so I don’t have to run a version with modified core files? (or provide me with another fix that doesn’t require modifying core).
I’ve modified:
./lib/tribe-filters.class.php – starting at line 407
from:
public function enqueue() { global $current_screen; $resources_url = apply_filters( 'tribe_apm_resources_url', $this->url . 'resources' ); $resources_url = trailingslashit($resources_url); if ( $current_screen->id == 'edit-' . $this->filtered_post_type ) { wp_enqueue_style('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css'); wp_enqueue_script('tribe-jquery-ui-datepicker', $resources_url . 'jquery-ui-datepicker.js', array('jquery-ui-core'), null, true ); wp_enqueue_script('tribe-filters', $resources_url . 'tribe-filters.js', array('jquery-ui-sortable', 'tribe-jquery-ui-datepicker'), null, true ); } }
To:
public function enqueue() { global $current_screen; $resources_url = apply_filters( 'tribe_apm_resources_url', $this->url . 'resources' ); $resources_url = trailingslashit($resources_url); if ( $current_screen->id == 'edit-' . $this->filtered_post_type ) { wp_enqueue_style('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css'); //georgiancode wp_enqueue_script('old-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js', array('jquery'), true); //wp_enqueue_script('tribe-jquery-ui-datepicker', $resources_url . 'jquery-ui-datepicker.js', array('jquery-ui-core'), null, true ); wp_enqueue_script('tribe-jquery-ui-datepicker', $resources_url . 'jquery-ui-datepicker.js', array('old-jquery-ui'), null, true ); wp_enqueue_script('tribe-filters', $resources_url . 'tribe-filters.js', array('jquery-ui-sortable', 'tribe-jquery-ui-datepicker'), null, true ); } }
./lib/tribe-meta-box.php – starting at Line 58
from:
function register_scripts_and_styles() { // change '\' to '/' in case using Windows $content_dir = str_replace('\\', '/', WP_CONTENT_DIR); $script_dir = str_replace('\\', '/', dirname(__FILE__)); // get URL of the directory of current file, this works in both theme or plugin $base_url = trailingslashit( str_replace($content_dir, WP_CONTENT_URL, $script_dir) ); $resources_url = apply_filters( 'tribe_apm_resources_url', $base_url . 'resources' ); $resources_url = trailingslashit($resources_url); wp_register_style( 'tribe-meta-box', $resources_url . 'meta-box.css'); wp_register_script('tribe-meta-box', $resources_url . 'meta-box.js', array('jquery'), null, true); wp_register_style('tribe-jquery-ui-css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/themes/base/jquery-ui.css'); wp_register_script('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/jquery-ui.min.js', array('jquery')); wp_register_script('tribe-timepicker', 'https://github.com/trentrichardson/jQuery-Timepicker-Addon/raw/master/jquery-ui-timepicker-addon.js', array('tribe-jquery-ui')); }
to:
function register_scripts_and_styles() { // change '\' to '/' in case using Windows $content_dir = str_replace('\\', '/', WP_CONTENT_DIR); $script_dir = str_replace('\\', '/', dirname(__FILE__)); // get URL of the directory of current file, this works in both theme or plugin $base_url = trailingslashit( str_replace($content_dir, WP_CONTENT_URL, $script_dir) ); $resources_url = apply_filters( 'tribe_apm_resources_url', $base_url . 'resources' ); $resources_url = trailingslashit($resources_url); wp_register_style( 'tribe-meta-box', $resources_url . 'meta-box.css'); wp_register_script('tribe-meta-box', $resources_url . 'meta-box.js', array('jquery'), null, true); wp_register_style('tribe-jquery-ui-css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/themes/base/jquery-ui.css'); //georgiancode //wp_register_script('tribe-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/' . self::get_jqueryui_ver() . '/jquery-ui.min.js', array('jquery')); wp_register_script('tribe-old-jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js', array('jquery')); wp_register_script('tribe-timepicker', 'https://github.com/trentrichardson/jQuery-Timepicker-Addon/raw/master/jquery-ui-timepicker-addon.js', array('tribe-jquery-ui')); }
Let me know.
Thanks,
ThomasForum: Fixing WordPress
In reply to: NEWS (posts) Page is highlighted in nav on HOME pageOh also, on this only happens when I use a template for the home page that has posts in it..
ie: the home page has a slider with content that is populated via posts in the category ‘slideshow’
If I use default template on the page the link highlights properly… only when posts are included in the page does it highlight the news page…