Make WordPress Core

Ticket #1579: vars.php.diff

File vars.php.diff, 4.2 KB (added by markjaquith, 19 years ago)

Patch for /branches/1.5/

  • vars.php

     
    110110define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
    111111define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );
    112112
     113
     114// WordPress Hook Listing
     115// Hook listing and function by Mark Jaquith
     116
     117$wp_hooks = array(
     118'404_template',
     119'admin_footer',
     120'admin_head',
     121'admin_menu',
     122'all_options',
     123'archive_template',
     124'author_email',
     125'author_feed_link',
     126'author_link',
     127'author_rewrite_rules',
     128'author_template',
     129'bloginfo',
     130'category_description',
     131'category_feed_link',
     132'category_link',
     133'category_rewrite_rules',
     134'category_save_pre',
     135'category_template',
     136'check_admin_referer',
     137'check_passwords',
     138'comment_author',
     139'comment_author_rss',
     140'comment_closed',
     141'comment_content_presave',
     142'comment_email',
     143'comment_excerpt',
     144'comment_flood_trigger',
     145'comment_form',
     146'comment_id_not_found',
     147'comment_on_draft',
     148'comment_post',
     149'comment_text',
     150'comment_text_rss',
     151'comment_url',
     152'comments_number',
     153'comments_popup_template',
     154'comments_rewrite_rules',
     155'comments_template',
     156'content_edit_pre',
     157'content_save_pre',
     158'core_files_loaded',
     159'date_rewrite_rules',
     160'date_template',
     161'day_link',
     162'default_content',
     163'default_excerpt',
     164'default_title',
     165'delete_comment',
     166'delete_post',
     167'edit_comment',
     168'edit_form_advanced',
     169'edit_page_form',
     170'edit_post',
     171'excerpt_edit_pre',
     172'excerpt_save_pre',
     173'feed_link',
     174'format_to_edit',
     175'format_to_post',
     176'generate_rewrite_rules',
     177'get_comment_ID',
     178'get_comment_author',
     179'get_comment_author_IP',
     180'get_comment_author_email',
     181'get_comment_author_link',
     182'get_comment_author_url',
     183'get_comment_author_url_link',
     184'get_comment_date',
     185'get_comment_excerpt',
     186'get_comment_text',
     187'get_comment_time',
     188'get_comment_type',
     189'get_comments_number',
     190'get_the_excerpt',
     191'get_the_guid',
     192'get_the_time',
     193'home_template',
     194'init',
     195'link_rating',
     196'list_cats',
     197'locale',
     198'loginout',
     199'lost_password',
     200'manage_posts_columns',
     201'manage_posts_custom_column',
     202'mod_rewrite_rules',
     203'month_link',
     204'name_save_pre',
     205'page_link',
     206'page_rewrite_rules',
     207'page_template',
     208'paged_template',
     209'parse_query',
     210'password_reset',
     211'phone_content',
     212'pingback_post',
     213'plugins_loaded',
     214'post_comment_text',
     215'post_comments_feed_link',
     216'post_link',
     217'post_rewrite_rules',
     218'posts_join',
     219'posts_join_paged',
     220'posts_orderby',
     221'posts_where',
     222'posts_where_paged',
     223'pre_comment_approved',
     224'pre_comment_author_email',
     225'pre_comment_author_name',
     226'pre_comment_author_url',
     227'pre_comment_content',
     228'pre_comment_user_agent',
     229'pre_comment_user_domain',
     230'pre_comment_user_ip',
     231'pre_user_id',
     232'preprocess_comment',
     233'private_to_published',
     234'publish_phone',
     235'publish_post',
     236'query_string',
     237'query_vars',
     238'register',
     239'retreive_password',
     240'retrieve_password',
     241'rewrite_rules',
     242'rewrite_rules_array',
     243'root_rewrite_rules',
     244'sanitize_title',
     245'save_post',
     246'search_rewrite_rules',
     247'search_template',
     248'show_password_fields',
     249'shutdown',
     250'simple_edit_form',
     251'single_post_title',
     252'single_template',
     253'stylesheet',
     254'stylesheet_directory',
     255'stylesheet_directory_uri',
     256'stylesheet_uri',
     257'switch_theme',
     258'template',
     259'template_directory',
     260'template_directory_uri',
     261'template_redirect',
     262'the_author_email',
     263'the_category',
     264'the_category_rss',
     265'the_content',
     266'the_date',
     267'the_excerpt',
     268'the_excerpt_rss',
     269'the_permalink',
     270'the_posts',
     271'the_time',
     272'the_title',
     273'the_title_rss',
     274'the_weekday',
     275'the_weekday_date',
     276'theme_root',
     277'theme_root_uri',
     278'title_edit_pre',
     279'title_save_pre',
     280'trackback_post',
     281'user_register',
     282'wp_authenticate',
     283'wp_blacklist_check',
     284'wp_footer',
     285'wp_head',
     286'wp_list_pages',
     287'wp_login',
     288'wp_logout',
     289'wp_meta',
     290'wp_set_comment_status',
     291'xmlrpc_methods',
     292'year_link'
     293);
     294
     295// now add a dynamic hook for each autoloaded option
     296foreach ($cache_settings as $setting) {
     297$wp_hooks[] = 'option_' . $setting;
     298$wp_hooks[] = 'pre_option_' . $setting;
     299}
     300
     301function hook_exists ($hook_name) {
     302        global $wp_hooks;
     303        return @in_array($hook_name, $wp_hooks);
     304}
     305
    113306?>
     307 No newline at end of file