Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deprecated hybrid_admin_init() and replace it with hybrid_admin_setup…

…(), which is hooked to an earlier hook: 'admin_menu'.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@939 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
commit 807141f61d2a6239a1d398b8880f60662c95b19c 1 parent 8bdb5dd
greenshady authored
Showing with 14 additions and 5 deletions.
  1. +5 −5 admin/admin.php
  2. +9 −0 functions/deprecated.php
View
10 admin/admin.php
@@ -11,16 +11,16 @@
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
-/* Add the admin init function to the 'admin_init' hook. */
-add_action( 'admin_init', 'hybrid_admin_init' );
+/* Add the admin setup function to the 'admin_menu' hook. */
+add_action( 'admin_menu', 'hybrid_admin_setup' );
/**
- * Initializes any admin-related features needed for the framework.
+ * Sets up the adminstration functionality for the framework and themes.
*
- * @since 0.7.0
+ * @since 1.3.0
* @return void
*/
-function hybrid_admin_init() {
+function hybrid_admin_setup() {
/* Load the post meta boxes on the new post and edit post screens. */
add_action( 'load-post.php', 'hybrid_admin_load_post_meta_boxes' );
View
9 functions/deprecated.php
@@ -399,6 +399,15 @@ function hybrid_settings_page_enqueue_script() {
return;
}
+/**
+ * @since 0.7.0
+ * @deprecated 1.3.0
+ */
+function hybrid_admin_init() {
+ _deprecated_function( __FUNCTION__, '1.3.0', 'hybrid_admin_setup' );
+ return;
+}
+
/* === Removed Functions === */
/* Functions removed in the 0.8 branch. */
Please sign in to comment.
Something went wrong with that request. Please try again.